-Add root motion support in AnimationTree.

-Add RootMotionView, to debug root motion in 3D (disabled in runtime)
This commit is contained in:
Juan Linietsky
2018-06-26 19:05:11 -03:00
parent f036353b93
commit c633b770cb
9 changed files with 667 additions and 22 deletions

View File

@ -1464,7 +1464,8 @@ void EditorInspector::update_tree() {
#endif
for (List<Ref<EditorInspectorPlugin> >::Element *E = valid_plugins.front(); E; E = E->next()) {
Ref<EditorInspectorPlugin> ped = E->get();
ped->parse_property(object, p.type, p.name, p.hint, p.hint_string, p.usage);
bool exclusive = ped->parse_property(object, p.type, p.name, p.hint, p.hint_string, p.usage);
List<EditorInspectorPlugin::AddedEditor> editors = ped->added_editors; //make a copy, since plugins may be used again in a sub-inspector
ped->added_editors.clear();
@ -1532,6 +1533,10 @@ void EditorInspector::update_tree() {
}
}
}
if (exclusive) {
break;
}
}
}