aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky2016-09-06 19:38:31 -0300
committerRémi Verschelde2016-09-18 23:10:14 +0200
commite0ddef3164600c21c38cb38034fd89ea919df0aa (patch)
tree4c57f83de90efbf43187c1552b4843dba67468de
parent7178399548d928ea28ca8861ace7203cae184288 (diff)
downloadgodot-e0ddef3164600c21c38cb38034fd89ea919df0aa.tar.gz
godot-e0ddef3164600c21c38cb38034fd89ea919df0aa.tar.zst
godot-e0ddef3164600c21c38cb38034fd89ea919df0aa.zip
Do not expose resource/ properties in sectioned property editor, closes #6396
(cherry picked from commit 0094c30938c870cdc0dd546be792c7f1951b5e08)
-rw-r--r--tools/editor/property_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp
index 58182bcd5..1ffcc4d37 100644
--- a/tools/editor/property_editor.cpp
+++ b/tools/editor/property_editor.cpp
@@ -4283,7 +4283,7 @@ void SectionedPropertyEditor::update_category_list() {
else if ( !(pi.usage&PROPERTY_USAGE_EDITOR) )
continue;
- if (pi.name.find(":")!=-1 || pi.name=="script/script")
+ if (pi.name.find(":")!=-1 || pi.name=="script/script" || pi.name.begins_with("resource/"))
continue;
int sp = pi.name.find("/");
if (sp!=-1) {