     add_obj: (myobj)=>
         @show_canvas()
 
+        if myobj.type == "index_face_set"
+            has_local_colors = myobj.has_local_colors
+        else
+            hase_local_colors = false
+
         vertices = myobj.vertex_geometry
         for objects in [0...myobj.face_geometry.length]
             #console.log("object=", misc.to_json(myobj))

                for k in [0...face5.length] by 6   # yep, 6 :-()
                    faces.push(face5.slice(k,k+6))


            geometry = new THREE.Geometry()

            for k in [0...vertices.length] by 3

            for v in faces
                switch v.length
                    when 3
                        if has_local_colors
                            push_face3(v...)
                        else:
                            push_face3_with_color(v...)
                    when 4
                        push_face4(v...)
                    when 5
