Bug #292 ยป p.patch
SCOLPack/SCOLAnim.cpp (working copy) | ||
---|---|---|
4078 | 4078 |
|
4079 | 4079 |
mTrack = NULL ; |
4080 | 4080 |
|
4081 |
animation->getNodeAnimTrack(&mTrack,(unsigned short)node) ; |
|
4081 |
|
|
4082 | 4082 |
|
4083 |
long index = (long)node; |
|
4084 |
|
|
4085 |
index = index & 0xffff; |
|
4086 |
|
|
4087 |
animation->getNodeAnimTrack(&mTrack,(unsigned short)index) ; |
|
4088 |
|
|
4089 |
|
|
4090 |
|
|
4083 | 4091 |
if(mTrack==NULL) {MMset(m,0,NIL); return 0; } |
4084 | 4092 |
|
4085 | 4093 |
int t = OBJfindTH(m, OBJtypebyname("SO3_ANIMTRACK"), (int)(mTrack)) ; |
SO3Animation/SO3AnimTrack.cpp (working copy) | ||
---|---|---|
11 | 11 |
SAnimTrack::SAnimTrack(std::string animationTrackName, SAnim* animation, SNode* node) : SData(animationTrackName) |
12 | 12 |
{ |
13 | 13 |
type = SAnimTrack::SO3_NODE_TRACK; |
14 |
O3NodeAnimationTrack = animation->getOgreAnimationPointer()->createNodeTrack((unsigned short)node, node->GetOgreSceneNodePointer()); |
|
14 |
long index = (long)node; |
|
15 |
index = index & 0xffff; |
|
16 |
O3NodeAnimationTrack = animation->getOgreAnimationPointer()->createNodeTrack((unsigned short)index, node->GetOgreSceneNodePointer()); |
|
15 | 17 |
strAssociatedNode = node->GetName(); |
16 | 18 |
|
17 | 19 |
O3VertexAnimationTrack = 0; |