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

Main: setTransformSpace() on NodeAnimationTrack #2840

Merged

Conversation

chillywillysoft
Copy link
Contributor

@chillywillysoft chillywillysoft commented May 13, 2023

@paroj
Copy link
Member

paroj commented May 14, 2023

can you fix the whitespace errors?

@paroj paroj merged commit c46778d into OGRECave:master May 14, 2023
@chillywillysoft chillywillysoft deleted the node-animation-local-translation branch May 15, 2023 03:54
paroj added a commit to paroj/ogre that referenced this pull request May 26, 2023
@@ -500,7 +500,7 @@ namespace Ogre {
{
rotate = Quaternion::Slerp(weight, Quaternion::IDENTITY, kf.getRotation(), mUseShortestRotationPath);
}
node->rotate(rotate);
node->rotate(rotate, mTransformSpace);
Copy link
Member

Choose a reason for hiding this comment

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

this defaults to TS_LOCAL

@@ -486,7 +486,7 @@ namespace Ogre {

// add to existing. Weights are not relative, but treated as absolute multipliers for the animation
Vector3 translate = kf.getTranslate() * weight * scl;
node->translate(translate);
node->translate(translate, mTransformSpace);
Copy link
Member

Choose a reason for hiding this comment

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

this defaults to TS_PARENT

@paroj
Copy link
Member

paroj commented May 26, 2023

@chillywillysoft had to revert this one, as I noticed broken animations (e.g. the Character Sample). See the comments above.

paroj added a commit to paroj/ogre that referenced this pull request May 27, 2023
paroj added a commit to paroj/ogre that referenced this pull request May 27, 2023
paroj added a commit that referenced this pull request May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants