summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-02-10 01:07:48 +0100
committerkobewi <kobewi4e@gmail.com>2023-02-10 01:07:48 +0100
commitf92392ce2377a868c60d67ae5e60dbf43f7d3a7d (patch)
tree252aea02fc049fd5addd6c8e5c8a305ca9bcb6f6 /editor
parent929ee61170ec4d431d6d2cfeddccdec2a59a11b7 (diff)
Fix error spam when deselecting TileMap
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/tiles/tile_set_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/tiles/tile_set_editor.cpp b/editor/plugins/tiles/tile_set_editor.cpp
index 39d17c718e..358cc47977 100644
--- a/editor/plugins/tiles/tile_set_editor.cpp
+++ b/editor/plugins/tiles/tile_set_editor.cpp
@@ -687,7 +687,7 @@ void TileSetEditor::_undo_redo_inspector_callback(Object *p_undo_redo, Object *p
void TileSetEditor::edit(Ref<TileSet> p_tile_set) {
bool new_read_only_state = false;
- if (tile_set.is_valid()) {
+ if (p_tile_set.is_valid()) {
new_read_only_state = EditorNode::get_singleton()->is_resource_read_only(p_tile_set);
}