summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-02-20 18:22:44 +0100
committerkobewi <kobewi4e@gmail.com>2023-02-20 18:22:44 +0100
commit56251cf08c52759268c1752942e30ffaf920755e (patch)
tree167ccce6b47cae3b7368ac44aa925fcc33296097
parent9c960a8c2494eb826a557a7ffc96dd4547f9d31e (diff)
Fix tile atlas merging crash
-rw-r--r--editor/plugins/tiles/atlas_merging_dialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/plugins/tiles/atlas_merging_dialog.cpp b/editor/plugins/tiles/atlas_merging_dialog.cpp
index eaf72d36ba..8404ea0969 100644
--- a/editor/plugins/tiles/atlas_merging_dialog.cpp
+++ b/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;
}
}