Browse Source

Merge pull request #73634 from KoBeWi/merged_into_error

Fix tile atlas merging crash
Rémi Verschelde 2 years ago
parent
commit
62d4d8bfc6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      editor/plugins/tiles/atlas_merging_dialog.cpp

+ 3 - 1
editor/plugins/tiles/atlas_merging_dialog.cpp

@@ -245,7 +245,9 @@ bool AtlasMergingDialog::_get(const StringName &p_name, Variant &r_ret) const {
 void AtlasMergingDialog::_notification(int p_what) {
 void AtlasMergingDialog::_notification(int p_what) {
 	switch (p_what) {
 	switch (p_what) {
 		case NOTIFICATION_VISIBILITY_CHANGED: {
 		case NOTIFICATION_VISIBILITY_CHANGED: {
-			_update_texture();
+			if (is_visible()) {
+				_update_texture();
+			}
 		} break;
 		} break;
 	}
 	}
 }
 }