diff options
| author | Juan Linietsky | 2017-02-12 22:51:16 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-02-15 08:30:32 -0300 |
| commit | d7fd86d51aadda665667c88dca657993f0de14d7 (patch) | |
| tree | 9efd3db7c491de74a975ef2bf8487051050fcc5c /tools/editor/property_editor.cpp | |
| parent | 9cdd364fc0edee407a65fbef674dcc3bcea378a9 (diff) | |
| download | godot-d7fd86d51aadda665667c88dca657993f0de14d7.tar.gz godot-d7fd86d51aadda665667c88dca657993f0de14d7.tar.zst godot-d7fd86d51aadda665667c88dca657993f0de14d7.zip | |
Diffstat (limited to 'tools/editor/property_editor.cpp')
| -rw-r--r-- | tools/editor/property_editor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp index 9a5fff3fb..b1528460e 100644 --- a/tools/editor/property_editor.cpp +++ b/tools/editor/property_editor.cpp @@ -889,7 +889,7 @@ bool CustomPropertyEditor::edit(Object* p_owner,const String& p_name,Variant::Ty menu->clear(); menu->set_size(Size2(1,1)); - if (p_name=="script/script" && hint_text=="Script" && owner->cast_to<Node>()) { + if (p_name=="script" && hint_text=="Script" && owner->cast_to<Node>()) { menu->add_icon_item(get_icon("Script","EditorIcons"),TTR("New Script"),OBJ_MENU_NEW_SCRIPT); menu->add_separator(); } else if (hint_text!="") { @@ -3141,7 +3141,7 @@ void PropertyEditor::update_tree() { continue; - if (hide_script && p.name=="script/script") + if (hide_script && p.name=="script") continue; String basename=p.name; @@ -4780,7 +4780,7 @@ void SectionedPropertyEditor::update_category_list() { else if ( !(pi.usage&PROPERTY_USAGE_EDITOR) ) continue; - if (pi.name.find(":")!=-1 || pi.name=="script/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") continue; int sp = pi.name.find("/"); if (sp==-1) |
