     @activeCell   = null
     @currentLayer = null        # Layer currently edited
     @idCount      = @contentData.nextCell || 1
+    @lastCentroid = null
 
     @stateLogger  = new VolumeTracingStateLogger(
       @flycam, tracing.version, tracing.id, tracing.typ,

    @binary.cube.labelVoxels(iterator, labelValue)
    console.log "Labeling time:", ((new Date()).getTime() - start)

    @currentLayer = null

    @trigger "volumeAnnotated"


  getActiveCellId : ->

    @currentLayer.addContour(pos)
    @trigger("updateLayer", @currentLayer.getSmoothedContourList())


  finishLayer : ->

    unless @currentLayer?
