1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Merge pull request #107468 from Calinou/editor-animationtree-warn-disabled

Display AnimationTree editor warnings when the node is disabled
This commit is contained in:
Thaddeus Crews
2025-09-30 18:35:14 -05:00
6 changed files with 28 additions and 20 deletions

View File

@@ -589,11 +589,7 @@ void AnimationNodeBlendSpace1DEditor::_notification(int p_what) {
String error;
if (!tree->is_active()) {
error = TTR("AnimationTree is inactive.\nActivate to enable playback, check node warnings if activation fails.");
} else if (tree->is_state_invalid()) {
error = tree->get_invalid_state_reason();
}
error = tree->get_editor_error_message();
if (error != error_label->get_text()) {
error_label->set_text(error);