1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Visualscript: Hide empty categories for basic types and methods.

This commit is contained in:
K. S. Ernest (iFire) Lee
2018-07-25 08:56:03 -07:00
parent 41a0ecb59b
commit 5b2c4b77e2

View File

@@ -222,6 +222,10 @@ void VisualScriptPropertySelector::_update_search() {
item->set_selectable(0, true);
}
}
if (category && category->get_children() == NULL) {
memdelete(category); //old category was unused
}
}
if (seq_connect == true && visual_script_generic == false) {
@@ -348,6 +352,10 @@ void VisualScriptPropertySelector::_update_search() {
found = true;
}
if (category && category->get_children() == NULL) {
memdelete(category); //old category was unused
}
get_ok()->set_disabled(root->get_children() == NULL);
}