-
-
Notifications
You must be signed in to change notification settings - Fork 981
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
Main: setTransformSpace() on NodeAnimationTrack #2840
Conversation
can you fix the whitespace errors? |
@@ -500,7 +500,7 @@ namespace Ogre { | |||
{ | |||
rotate = Quaternion::Slerp(weight, Quaternion::IDENTITY, kf.getRotation(), mUseShortestRotationPath); | |||
} | |||
node->rotate(rotate); | |||
node->rotate(rotate, mTransformSpace); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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
@chillywillysoft had to revert this one, as I noticed broken animations (e.g. the Character Sample). See the comments above. |
motivation: https://forums.ogre3d.org/viewtopic.php?p=554574