Explorar el Código

Fix tile atlas merging crash

kobewi hace 2 años
padre
commit
56251cf08c
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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;
 	}
 }