mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #71418 from TokageItLab/restart-anim-tree
Allow AnimationStateMachine / AnimationNode to restart when transitioning to the same state
This commit is contained in:
commit
d919d77367
10 changed files with 175 additions and 72 deletions
|
|
@ -187,7 +187,7 @@ void AnimationNodeBlendTreeEditor::update_graph() {
|
|||
String base_path = AnimationTreeEditor::get_singleton()->get_base_path() + String(E) + "/" + F.name;
|
||||
EditorProperty *prop = EditorInspector::instantiate_property_editor(tree, F.type, base_path, F.hint, F.hint_string, F.usage);
|
||||
if (prop) {
|
||||
prop->set_read_only(read_only);
|
||||
prop->set_read_only(read_only || (F.usage & PROPERTY_USAGE_READ_ONLY));
|
||||
prop->set_object_and_property(tree, base_path);
|
||||
prop->update_property();
|
||||
prop->set_name_split_ratio(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue