       m.id.name = x.name
       loadedModels[m.props.name] = m
 
+      if m.props.icon != ''
+        @ve.loadIcon(m.props.name, (tex) =>
+          m.setIcon(@ve.iconCache[m.props.name])
+        )
+        true
+
   loadSimSettings: (settings) =>
     @ve.simSettings.props = settings
 

        name: "model0"
      }
      @instances = []

    instantiate: (parent, x, y, z) ->


      @links = []
      @args = []

    setIcon: (x=0, y=0, z=50) =>
      material = new THREE.SpriteMaterial({
        map: @tex,
        #alphaTest: 0.5,
