   placingUp: (event) ->
     console.log "plop"
     #push that muffin to the bakery!
+    @ve.addie.update(@placingObject)
     @ve.container.onmousemove = null
     @ve.container.onmousedown = (eve) => @baseDown(eve)
     @ve.container.onmouseup = null

    @raycaster.linePrecision = 10
    @namemanager = new NameManager()
    @xpcontrol = new ExperimentControl(this)

  render: ->
    @renderer.clear()
    @renderer.clearDepth()
    @renderer.render(@scene, @camera)

#Mouse handler encapsulates the logic of dealing with mouse events
class MouseHandler

  addElement: (ef, x, y) ->
    e = new ef.constructor(@baseRect, x, y, 50)
    e.props.name = @ve.namemanager.getName(e.constructor.name.toLowerCase())
    e.props.design = dsg
    @elements.push(e)
    @ve.render()
    e
