Selaa lähdekoodia

Fix tile atlas merging crash

kobewi 2 vuotta sitten
vanhempi
commit
56251cf08c
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  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) {
 	switch (p_what) {
 		case NOTIFICATION_VISIBILITY_CHANGED: {
-			_update_texture();
+			if (is_visible()) {
+				_update_texture();
+			}
 		} break;
 	}
 }