1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Usability improvements for folding. Unfortunately SpatialMaterial broke compatibility.

This commit is contained in:
Juan Linietsky
2017-06-25 18:57:28 -03:00
parent 760cdbe1a3
commit d41978eb63
7 changed files with 24 additions and 13 deletions

View File

@@ -2992,6 +2992,8 @@ void PropertyEditor::update_tree() {
if (group_base != "") {
if (basename.begins_with(group_base)) {
basename = basename.replace_first(group_base, "");
} else if (group_base.begins_with(basename)) {
//keep it, this is used pretty often
} else {
group = ""; //no longer using group base, clear
}