aboutsummaryrefslogtreecommitdiff
path: root/editor/property_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-12-09 23:46:38 +0100
committerRémi Verschelde2017-12-10 00:18:10 +0100
commit028f959fb12562feaf7f2234f7cf0363ae8f4736 (patch)
tree7aa59aeb984cd1cd0d55a1ee48e0befaf1dab2de /editor/property_editor.cpp
parentf09e2cf09436e1e63936d011f9eec72dd18ff20a (diff)
downloadgodot-028f959fb12562feaf7f2234f7cf0363ae8f4736.tar.gz
godot-028f959fb12562feaf7f2234f7cf0363ae8f4736.tar.zst
godot-028f959fb12562feaf7f2234f7cf0363ae8f4736.zip
PropertyEditor: Filter out resource_local_to_scene
This lets the empty "Global" category disappear again. Also silence a debug print.
Diffstat (limited to 'editor/property_editor.cpp')
-rw-r--r--editor/property_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp
index 1d709b250..14e3b7cfb 100644
--- a/editor/property_editor.cpp
+++ b/editor/property_editor.cpp
@@ -4362,7 +4362,7 @@ class SectionedPropertyEditorFilter : public Object {
PropertyInfo pi = E->get();
int sp = pi.name.find("/");
- if (pi.name == "resource_path" || pi.name == "resource_name" || pi.name.begins_with("script/")) //skip resource stuff
+ if (pi.name == "resource_path" || pi.name == "resource_name" || pi.name == "resource_local_to_scene" || pi.name.begins_with("script/")) //skip resource stuff
continue;
if (sp == -1) {
@@ -4512,7 +4512,7 @@ void SectionedPropertyEditor::update_category_list() {
else if (!(pi.usage & PROPERTY_USAGE_EDITOR))
continue;
- if (pi.name.find(":") != -1 || pi.name == "script" || pi.name == "resource_name" || pi.name == "resource_path")
+ if (pi.name.find(":") != -1 || pi.name == "script" || pi.name == "resource_name" || pi.name == "resource_path" || pi.name == "resource_local_to_scene")
continue;
if (search_box && search_box->get_text() != String() && pi.name.findn(search_box->get_text()) == -1)