goat3d
diff src/xform_node.cc @ 66:3751aabbc5b3
igame animation api is weird...
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 19 Apr 2014 07:56:43 +0300 |
parents | 9ef9de80649c |
children | 8970ca3d55e0 |
line diff
1.1 --- a/src/xform_node.cc Tue Apr 01 13:11:04 2014 +0300 1.2 +++ b/src/xform_node.cc Sat Apr 19 07:56:43 2014 +0300 1.3 @@ -75,6 +75,8 @@ 1.4 1.5 void XFormNode::add_child(XFormNode *child) 1.6 { 1.7 + if(!child || child == this) return; 1.8 + 1.9 children.push_back(child); 1.10 anm_link_node(anm, child->anm); 1.11 child->parent = this;