summaryrefslogtreecommitdiff
path: root/editor/editor_properties.cpp
diff options
context:
space:
mode:
authormerumelu <merumelu@protonmail.com>2019-08-30 19:02:46 +0200
committermerumelu <merumelu@protonmail.com>2019-08-30 19:02:46 +0200
commite2459479dea6a853bc180b182f1817ede4baa611 (patch)
tree8167d3bcd141f19c4eb5d64f8fe05cc2bee7c001 /editor/editor_properties.cpp
parentba854bbc7bb0eae230299de4da8dfcb7caf74b69 (diff)
Editor: remove TOOLS_ENABLED guards
For code inside editor/ `#ifdef TOOLS_ENABLED` is always true so those checks are redundant.
Diffstat (limited to 'editor/editor_properties.cpp')
-rw-r--r--editor/editor_properties.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index 378dd34e39..d7b3c7733b 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -2540,7 +2540,7 @@ void EditorPropertyResource::update_property() {
if (res.is_valid() != assign->is_toggle_mode()) {
assign->set_toggle_mode(res.is_valid());
}
-#ifdef TOOLS_ENABLED
+
if (res.is_valid() && get_edited_object()->editor_is_section_unfolded(get_edited_property())) {
if (!sub_inspector) {
@@ -2609,7 +2609,6 @@ void EditorPropertyResource::update_property() {
}
}
}
-#endif
}
preview->set_texture(Ref<Texture>());