Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 336 vs 337 for /trunk/Source Code/Geometry/Animations/Headers/AnimationController.h

Diff revisions: vs.
  @@ -116,19 +116,19 @@
116 116 inline const mat4<F32>& GetBoneTransform(I32 animationIndex, const D32 dt, U32 bindex) {
117 117 return _animations[animationIndex].GetTransforms(dt)[bindex];
118 118 }
119 - /// Get the bone's global transform
120 - inline const mat4<F32>& GetBoneOffsetTransform(const stringImpl& bname) {
121 - I32 bindex=GetBoneIndex(bname);
122 - if(bindex != -1) {
123 - AnimUtils::TransformMatrix(_bonesByName[bname]->_offsetMatrix, _cacheIdentity);
124 - }
125 - return _cacheIdentity;
126 - }
119 + /// Get the bone's global transform
120 + inline const mat4<F32>& GetBoneOffsetTransform(const stringImpl& bname) {
121 + I32 bindex=GetBoneIndex(bname);
122 + if(bindex != -1) {
123 + AnimUtils::TransformMatrix(_bonesByName[bname]->_offsetMatrix, _cacheIdentity);
124 + }
125 + return _cacheIdentity;
126 + }
127 127
128 128 /// A vector that holds each animation
129 129 vectorImpl<AnimEvaluator> _animations;
130 130 Bone* GetBoneByName(const stringImpl& name) const;
131 - /// GetBoneIndex will return the index of the bone given its name.
131 + /// GetBoneIndex will return the index of the bone given its name.
132 132 /// The index can be used to index directly into the vector returned from GetTransform
133 133 I32 GetBoneIndex(const stringImpl& bname) const;
134 134 const vectorImpl<Line >& getSkeletonLines(I32 animationIndex, const D32 dt);