| 775 | } |
| 776 | |
| 777 | void TSShapeLoader::setNodeMembership(TSShape::Sequence& seq, const AppSequence* appSeq) |
| 778 | { |
| 779 | seq.rotationMatters.clearAll(); // node rotation (size = nodes.size()) |
| 780 | seq.translationMatters.clearAll(); // node translation (size = nodes.size()) |
| 781 | seq.scaleMatters.clearAll(); // node scale (size = nodes.size()) |
| 782 | |
| 783 | // This shouldn't be allowed, but check anyway... |
| 784 | if (seq.numKeyframes < 2) |
| 785 | return; |
| 786 | |
| 787 | // Note: this fills the cache with current sequence data. Methods that get |
| 788 | // called later (e.g. generateNodeAnimation) use this info (and assume it's set). |
| 789 | fillNodeTransformCache(seq, appSeq); |
| 790 | |
| 791 | // Test to see if the transform changes over the interval in order to decide |
| 792 | // whether to animate the transform in 3space. We don't use app's mechanism |
| 793 | // for doing this because it functions different in different apps and we do |
| 794 | // some special stuff with scale. |
| 795 | setRotationMembership(seq); |
| 796 | setTranslationMembership(seq); |
| 797 | setScaleMembership(seq); |
| 798 | } |
| 799 | |
| 800 | void TSShapeLoader::setRotationMembership(TSShape::Sequence& seq) |
| 801 | { |