goat3d

changeset 96:20b04b4edad4

[goat3d] removed C++11-ism from libgoat3d
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 19 May 2014 06:46:30 +0300
parents da100bf13f7f
children 32dccb16678f b43d33f3ba69
files src/goat3d_readxml.cc
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/src/goat3d_readxml.cc	Mon May 19 06:42:40 2014 +0300
     1.2 +++ b/src/goat3d_readxml.cc	Mon May 19 06:46:30 2014 +0300
     1.3 @@ -245,16 +245,16 @@
     1.4  		}
     1.5  	}
     1.6  
     1.7 -	for(auto key : keys) {
     1.8 +	for(size_t i=0; i<keys.size(); i++) {
     1.9  		switch(type) {
    1.10  		case XFormNode::POSITION_TRACK:
    1.11 -			node->set_position(Vector3(key.val.x, key.val.y, key.val.z), key.tm);
    1.12 +			node->set_position(Vector3(keys[i].val.x, keys[i].val.y, keys[i].val.z), keys[i].tm);
    1.13  			break;
    1.14  		case XFormNode::ROTATION_TRACK:
    1.15 -			node->set_rotation(Quaternion(key.val.w, key.val.x, key.val.y, key.val.z), key.tm);
    1.16 +			node->set_rotation(Quaternion(keys[i].val.w, keys[i].val.x, keys[i].val.y, keys[i].val.z), keys[i].tm);
    1.17  			break;
    1.18  		case XFormNode::SCALING_TRACK:
    1.19 -			node->set_scaling(Vector3(key.val.x, key.val.y, key.val.z), key.tm);
    1.20 +			node->set_scaling(Vector3(keys[i].val.x, keys[i].val.y, keys[i].val.z), keys[i].tm);
    1.21  		}
    1.22  	}
    1.23  	return true;