You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Merge pull request #55456 from KoBeWi/break_all_the_things
This commit is contained in:
@@ -288,7 +288,7 @@ EditorAssetLibraryItemDescription::EditorAssetLibraryItemDescription() {
|
||||
|
||||
preview = memnew(TextureRect);
|
||||
previews_vbox->add_child(preview);
|
||||
preview->set_expand(true);
|
||||
preview->set_ignore_texture_size(true);
|
||||
preview->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED);
|
||||
preview->set_custom_minimum_size(Size2(640 * EDSCALE, 345 * EDSCALE));
|
||||
|
||||
|
||||
@@ -1232,7 +1232,7 @@ SpriteFramesEditor::SpriteFramesEditor() {
|
||||
split_sheet_vb->add_child(split_sheet_panel);
|
||||
|
||||
split_sheet_preview = memnew(TextureRect);
|
||||
split_sheet_preview->set_expand(true);
|
||||
split_sheet_preview->set_ignore_texture_size(true);
|
||||
split_sheet_preview->set_mouse_filter(MOUSE_FILTER_PASS);
|
||||
split_sheet_preview->connect("draw", callable_mp(this, &SpriteFramesEditor::_sheet_preview_draw));
|
||||
split_sheet_preview->connect("gui_input", callable_mp(this, &SpriteFramesEditor::_sheet_preview_input));
|
||||
|
||||
@@ -84,7 +84,7 @@ TexturePreview::TexturePreview(Ref<Texture2D> p_texture, bool p_show_metadata) {
|
||||
texture_display->set_texture(p_texture);
|
||||
texture_display->set_anchors_preset(TextureRect::PRESET_WIDE);
|
||||
texture_display->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED);
|
||||
texture_display->set_expand(true);
|
||||
texture_display->set_ignore_texture_size(true);
|
||||
add_child(texture_display);
|
||||
|
||||
if (p_show_metadata) {
|
||||
|
||||
@@ -301,7 +301,7 @@ AtlasMergingDialog::AtlasMergingDialog() {
|
||||
preview = memnew(TextureRect);
|
||||
preview->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
preview->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
preview->set_expand(true);
|
||||
preview->set_ignore_texture_size(true);
|
||||
preview->hide();
|
||||
preview->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED);
|
||||
atlas_merging_right_panel->add_child(preview);
|
||||
|
||||
Reference in New Issue
Block a user