Skip to content

Display AnimationTree editor warnings when the node is disabled #107468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Jun 12, 2025

AnimationTree's Active property isn't the only way to control whether an AnimationTree can play animations. Node's Process Mode property also affects it.

Preview

image

@KoBeWi
Copy link
Member

KoBeWi commented Jun 24, 2025

It'd be better to have a method in AnimationTree that returns error string, instead of repeating the same thing 4 times.

@Calinou Calinou force-pushed the editor-animationtree-warn-disabled branch from be1ee9a to 70812c7 Compare June 25, 2025 15:41
@Calinou Calinou requested a review from a team as a code owner June 25, 2025 15:41
AnimationTree's Active property isn't the only way to control whether
an AnimationTree can play animations. Node's Process Mode property
also affects it.
@Calinou Calinou force-pushed the editor-animationtree-warn-disabled branch from 70812c7 to 607a9a4 Compare June 26, 2025 14:34
@TokageItLab TokageItLab moved this to Ready for review in Animation Team Issue Triage Jun 27, 2025
} else if (blend_space->get_triangle_count() == 0) {
error = tree->get_editor_error_message();

if (blend_space->get_triangle_count() == 0) {
Copy link
Member

@KoBeWi KoBeWi Jul 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To preserve the previous behavior, you should also check whether error is empty here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready for review
Development

Successfully merging this pull request may close these issues.

2 participants