aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/property_editor.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-12-08 17:48:03 -0300
committerJuan Linietsky2015-12-08 17:48:03 -0300
commitc650d4e19c1f1fffc2f798db3d18a1ad1a58ab8b (patch)
tree4b9280503112055e2431344547001db59702e69c /tools/editor/property_editor.cpp
parent09ff4571859b012b64876883e186bb7dfaca0c8c (diff)
parente176bb6a7c736e8f2fe7fb96f2a4ecbb296dced0 (diff)
downloadgodot-c650d4e19c1f1fffc2f798db3d18a1ad1a58ab8b.tar.gz
godot-c650d4e19c1f1fffc2f798db3d18a1ad1a58ab8b.tar.zst
godot-c650d4e19c1f1fffc2f798db3d18a1ad1a58ab8b.zip
Merge branch 'master' of https://github.com/godotengine/godot
Diffstat (limited to '')
-rw-r--r--tools/editor/property_editor.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp
index 0fe3dee2e..7ab09f048 100644
--- a/tools/editor/property_editor.cpp
+++ b/tools/editor/property_editor.cpp
@@ -2207,9 +2207,9 @@ TreeItem *PropertyEditor::get_parent_node(String p_path,HashMap<String,TreeItem*
}
item->set_editable(0,false);
- item->set_selectable(0,false);
+ item->set_selectable(0,subsection_selectable);
item->set_editable(1,false);
- item->set_selectable(1,false);
+ item->set_selectable(1,subsection_selectable);
if (item->get_parent()==root) {
@@ -3511,7 +3511,15 @@ void PropertyEditor::register_text_enter(Node* p_line_edit) {
if (search_box)
search_box->connect("text_changed",this,"_filter_changed");
+}
+void PropertyEditor::set_subsection_selectable(bool p_selectable) {
+
+ if (p_selectable==subsection_selectable)
+ return;
+
+ subsection_selectable=p_selectable;
+ update_tree();
}
PropertyEditor::PropertyEditor() {
@@ -3573,8 +3581,8 @@ PropertyEditor::PropertyEditor() {
show_categories=false;
refresh_countdown=0;
use_doc_hints=false;
-
use_filter=false;
+ subsection_selectable=false;
}