aboutsummaryrefslogtreecommitdiff
path: root/editor/editor_inspector.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2018-06-07 12:46:14 -0300
committerJuan Linietsky2018-06-07 12:52:00 -0300
commitb659fd6d7442701284cbb8763fb712be36d17ed0 (patch)
tree4c5bcc78fb9ae1c77e91854b5ee90acbdaadeba9 /editor/editor_inspector.cpp
parent3cd09cd9437ba7ad1755734beae3fd2c1e594566 (diff)
downloadgodot-b659fd6d7442701284cbb8763fb712be36d17ed0.tar.gz
godot-b659fd6d7442701284cbb8763fb712be36d17ed0.tar.zst
godot-b659fd6d7442701284cbb8763fb712be36d17ed0.zip
Entirely new (and much improved) animation editor.
Diffstat (limited to 'editor/editor_inspector.cpp')
-rw-r--r--editor/editor_inspector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index a6f159ce3..ebfb63b1f 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -1331,8 +1331,9 @@ void EditorInspector::update_tree() {
} else if (!(p.usage & PROPERTY_USAGE_EDITOR))
continue;
- if (hide_script && p.name == "script")
+ if (p.name == "script" && (hide_script || bool(object->call("_hide_script_from_inspector")))) {
continue;
+ }
String basename = p.name;
if (group != "") {