       @assembly = new THREE.Mesh(new THREE.Geometry())
       @assembly.name = "assembly"
       
-      for index, part of res.parts
+      for index, part of res.children
         @_importGeom(part,@assembly)
         
       @scene.add @assembly 

      mesh.geometry.computeCentroids()
      
      if @renderer instanceof THREE.CanvasRenderer
        @mesh.doubleSided = true
      
      #get object connectors
      for i, conn of geom.connectors

       
      rootObj.add mesh
      #recursive, for sub objects
      if csgObj.children?
        for index, child of csgObj.children
          @_importGeom(child, mesh)
      

  return VisualEditorView
