瀏覽代碼

Fix tile atlas merging crash

kobewi 2 年之前
父節點
當前提交
56251cf08c
共有 1 個文件被更改,包括 3 次插入1 次删除
  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;
 	}
 }