summaryrefslogtreecommitdiffstats
path: root/editor/editor_properties.cpp
diff options
context:
space:
mode:
authorRindbee <idleman@yeah.net>2022-12-29 12:58:58 +0800
committerRindbee <idleman@yeah.net>2022-12-31 20:29:09 +0800
commitef2c3398e6d3bce159d322df64b4a23c46a9acc1 (patch)
tree166e2379e3d4dbfeb217ecfcb4a0f9fafc87e205 /editor/editor_properties.cpp
parent7e1bd3f95a10acf60e07a8a6518cc80bfee6fbbf (diff)
downloadredot-engine-ef2c3398e6d3bce159d322df64b4a23c46a9acc1.tar.gz
Propagate the keying state in the inspector
Toggling the keying state does not significantly change the structure of the inspector. So it's ok to propagate the keying state and then use `queue_redraw()` to update the keying icon.
Diffstat (limited to 'editor/editor_properties.cpp')
-rw-r--r--editor/editor_properties.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index 4c9b18efe7..8c5db444ab 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -4121,6 +4121,8 @@ void EditorPropertyResource::update_property() {
if (use_editor) {
// Open editor directly and hide other such editors which are currently open.
+ // The opened editor is the one that edits the sub-resource, so keying state will be toggled to false.
+ sub_inspector->set_keying(false);
_open_editor_pressed();
if (is_inside_tree()) {
get_tree()->call_deferred(SNAME("call_group"), "_editor_resource_properties", "_fold_other_editors", this);