mirror of
https://github.com/godotengine/godot.git
synced 2025-01-07 10:41:52 +00:00
Unpress buttons in AnimationTree when switching to read-only mode.
This commit is contained in:
parent
06d5189167
commit
0e545d9e88
@ -76,6 +76,11 @@ void AnimationNodeStateMachineEditor::edit(const Ref<AnimationNode> &p_node) {
|
||||
_update_graph();
|
||||
}
|
||||
|
||||
if (read_only) {
|
||||
tool_create->set_pressed(false);
|
||||
tool_connect->set_pressed(false);
|
||||
}
|
||||
|
||||
tool_create->set_disabled(read_only);
|
||||
tool_connect->set_disabled(read_only);
|
||||
}
|
||||
@ -1591,6 +1596,11 @@ void AnimationNodeStateMachineEditor::_update_mode() {
|
||||
selection_tools_hb->hide();
|
||||
}
|
||||
|
||||
if (read_only) {
|
||||
tool_create->set_pressed(false);
|
||||
tool_connect->set_pressed(false);
|
||||
}
|
||||
|
||||
if (tool_connect->is_pressed()) {
|
||||
transition_tools_hb->show();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user