Explorar o código

bugfix in fbx-2-hmd convert

ncannasse %!s(int64=9) %!d(string=hai) anos
pai
achega
4a6b579d18
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      hxd/fmt/fbx/HMDOut.hx

+ 1 - 1
hxd/fmt/fbx/HMDOut.hx

@@ -325,7 +325,7 @@ class HMDOut extends BaseLibrary {
 					if( p != null ) p.childs.remove(o);
 					// move not joint to new parent
 					// (only first level, others will follow their respective joint)
-					for( c in o.childs )
+					for( c in o.childs.copy() )
 						if( !c.isJoint ) {
 							o.childs.remove(c);
 							o2.childs.push(c);