Skip to content
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

Improve AnimationMixer warnings #88247

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Feb 12, 2024

Ever since AnimationMixer was added, I'm getting bothered by animation warnings from interpolation mismatch. They come from various scenes and need to be fixed on by one, but the warning does not provide any context other than animation name, so sometimes it's difficult to poinpoint what caused the warning.
After checking it again on master I think they were a bit loosened, but just in case I decided to tweak them a bit to make them easier to find.

This PR adds scene name (if available) to the warnings coming from AnimationMixer:
image

@KoBeWi KoBeWi added this to the 4.3 milestone Feb 12, 2024
@KoBeWi KoBeWi requested a review from a team as a code owner February 12, 2024 14:05
@KoBeWi KoBeWi force-pushed the warning_pinpointer_20000 branch from d582141 to 154b4a5 Compare February 12, 2024 15:24
Copy link
Member

@fire fire left a comment

Choose a reason for hiding this comment

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

This improves the usability of errors and helps the developers debug the warning.

The performance is as bad as regular printing so there's no change.

@akien-mga akien-mga merged commit e57fee9 into godotengine:master Feb 12, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants