Răsfoiți Sursa

Fix tile atlas merging crash

kobewi 2 ani în urmă
părinte
comite
56251cf08c
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  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;
 	}
 	}
 }
 }