| 1031 | } |
| 1032 | } |
| 1033 | else |
| 1034 | { |
| 1035 | Vector3 beg = sShape->Pos(axisSel[0]); |
| 1036 | Vector3 end = sShape->Pos(axisSel[1]); |
| 1037 | _center[i] = beg; |
| 1038 | Vector3 norm = (end - beg); |
| 1039 | _direction[i] = norm.Normalized(); |
| 1040 | } |
| 1041 | } |
| 1042 | } |
| 1043 | |
| 1044 | void AnimationRotation::Init2(LODShape* shape, const char* name, const char* begin, const char* end, bool inMemory) |
| 1045 | { |
| 1046 | Animation::Init(shape, name, nullptr); |
| 1047 | for (int i = 0; i < shape->NLevels(); i++) |
| 1048 | { |
| 1049 | if (_selection[i] < 0) |
| 1050 | { |
| 1051 | continue; |
| 1052 | } |
| 1053 | Shape* sShape = inMemory ? shape->MemoryLevel() : shape->Level(i); |
no test coverage detected