goat3d
diff src/xform_node.cc @ 68:8ecaf9cd3ce7
progress on the exporter
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 20 Apr 2014 12:43:26 +0300 |
parents | 8970ca3d55e0 |
children | da100bf13f7f |
line diff
1.1 --- a/src/xform_node.cc Sat Apr 19 08:01:37 2014 +0300 1.2 +++ b/src/xform_node.cc Sun Apr 20 12:43:26 2014 +0300 1.3 @@ -209,7 +209,10 @@ 1.4 int XFormNode::get_key_count(int trackid) const 1.5 { 1.6 struct anm_animation *anim = anm_get_active_animation(anm, 0); 1.7 - return anim->tracks[track_type_base[trackid]].count; 1.8 + if(anim) { 1.9 + return anim->tracks[track_type_base[trackid]].count; 1.10 + } 1.11 + return 0; 1.12 } 1.13 1.14 int XFormNode::get_position_key_count() const