                     delete obj.type
                     @add_point obj
                 else
-                    console.log "ERROR: no renderer for model number #{obj.id}"
-                    return
+                    console.log "ERROR: bad object type #{obj.type}"
 
         if opts.set_frame?
             @set_frame opts.set_frame

        for obj in opts.obj
            switch obj.type
                when 'text'
                    @add_text
                        pos           : obj.pos
                        text          : obj.text
                        color         : obj.color
                        fontsize      : obj.fontsize
                        fontface      : obj.fontface
                        constant_size : obj.constant_size
                when 'index_face_set'
                    if opts.wireframe?
                        obj.wireframe = opts.wireframe
                    @add_obj obj
                    if obj.mesh and not obj.wireframe  # draw a wireframe mesh on top of the surface we just drew.
                        obj.color='#000000'
                        obj.wireframe = obj.mesh
                        @add_obj obj
                when 'line'
                    delete obj.type
                    @add_line obj


        scene.opts.parent = opts.element

        scene.opts.callback = (error, sceneobj) ->
            if not error
                if scene.obj?
                    sceneobj.add_3dgraphics_obj obj : scene.obj
                sceneobj.finalize()
            opts.callback? error, sceneobj

        new Math3dThreeJS scene.opts

