Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 249 vs 250 for /trunk/Source Code/Geometry/Animations/AnimationController.cpp

Diff revisions: vs.
  @@ -5,20 +5,20 @@
5 5
6 6 void SceneAnimator::Release(){// this should clean everything up
7 7 _currentAnimIndex = -1;
8 - for_each(pointCollection::value_type& it, _pointsA){
9 - for_each(pointMap::value_type& it2, it.second){
8 + FOR_EACH(pointCollection::value_type& it, _pointsA){
9 + FOR_EACH(pointMap::value_type& it2, it.second){
10 10 it2.second.clear();
11 11 }
12 12 }
13 13
14 - for_each(pointCollection::value_type& it, _pointsB){
15 - for_each(pointMap::value_type& it2, it.second){
14 + FOR_EACH(pointCollection::value_type& it, _pointsB){
15 + FOR_EACH(pointMap::value_type& it2, it.second){
16 16 it2.second.clear();
17 17 }
18 18 }
19 19
20 - for_each(colorCollection::value_type& it, _colors){
21 - for_each(colorMap::value_type& it2, it.second){
20 + FOR_EACH(colorCollection::value_type& it, _colors){
21 + FOR_EACH(colorMap::value_type& it2, it.second){
22 22 it2.second.clear();
23 23 }
24 24 }
  @@ -103,7 +103,7 @@
103 103 }
104 104 // get all the animation names so I can reference them by name and get the correct id
105 105 U16 i = 0;
106 - for_each(AnimEvaluator& animation, _animations){
106 + FOR_EACH(AnimEvaluator& animation, _animations){
107 107 _animationNameToId.insert(Unordered_map<std::string, U32>::value_type(animation._name, i++));
108 108 }
109 109 _currentAnimIndex=0;
  @@ -165,7 +165,7 @@
165 165 void SceneAnimator::UpdateTransforms(Bone* pNode) {
166 166 CalculateBoneToWorldTransform( pNode);// update global transform as well
167 167 /// continue for all children
168 - for_each(Bone* bone, pNode->_children){
168 + FOR_EACH(Bone* bone, pNode->_children){
169 169 UpdateTransforms( bone );
170 170 }
171 171 }
  @@ -253,7 +253,7 @@
253 253 }
254 254
255 255 // render all child nodes
256 - for_each(Bone* bone, piNode->_children){
256 + FOR_EACH(Bone* bone, piNode->_children){
257 257 CreateSkeleton(bone, me, pointsA, pointsB, colors);
258 258 }
259 259