summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-02-19 23:07:23 +0100
committerkobewi <kobewi4e@gmail.com>2023-02-20 09:55:06 +0100
commit860da7bc775a46f7b7c813955898e3849fda1f19 (patch)
tree0d015aa8877f1b2d8b74cf05a1591133b6566445 /editor
parent9f68d06ec2d8dbeb237c5aa5c6f9bbcbe26bde5d (diff)
Apply inspector read_only only when changed
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_inspector.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index da4c1328cd..bc0a876c7c 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -3374,6 +3374,9 @@ void EditorInspector::set_keying(bool p_active) {
}
void EditorInspector::set_read_only(bool p_read_only) {
+ if (p_read_only == read_only) {
+ return;
+ }
read_only = p_read_only;
update_tree();
}