From 3c655633d1a8730f2408dc15fa7df4f7b37f2afc Mon Sep 17 00:00:00 2001 From: Shon Ferguson <shonferg@users.sourceforge.net> Date: Mon, 2 Apr 2007 15:42:10 +0000 Subject: [PATCH] Fixed description of NiNode child order fix in comment. --- src/obj/NiNode.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/obj/NiNode.cpp b/src/obj/NiNode.cpp index b59bc028..603cf621 100644 --- a/src/obj/NiNode.cpp +++ b/src/obj/NiNode.cpp @@ -66,8 +66,9 @@ void NiNode::AddChild( Ref<NiAVObject> obj ) { } obj->SetParent( this ); //Sometimes NiTriBasedGeom with skins can be siblings of NiNodes that - //represent joints for that same skin. This is not allowed, so we have - //to prevent it by always adding NiTriBasedGeom to the begining of the child list. + //represent joints for that same skin. When this is the case, NiTriBasedGeom + //must com first, so we enforce that by always adding NiTriBasedGeom to the + //begining of the child list. NiTriBasedGeomRef niGeom = DynamicCast<NiTriBasedGeom>(obj); if ( niGeom != NULL ) { //This is a NiTriBasedGeom, so shift all children to the right -- GitLab