From 37e9d7bb2d3fb065a549359a420ef0143b497939 Mon Sep 17 00:00:00 2001 From: Scott Erickson <sderickson@gmail.com> Date: Fri, 26 Sep 2014 12:45:27 -0700 Subject: [PATCH] Enabled the Surface's normalStage and all its layers. --- app/lib/surface/Surface.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/surface/Surface.coffee b/app/lib/surface/Surface.coffee index 38fd880a1..23f42613e 100644 --- a/app/lib/surface/Surface.coffee +++ b/app/lib/surface/Surface.coffee @@ -105,7 +105,7 @@ module.exports = Surface = class Surface extends CocoClass @normalLayers.push @screenLayer = new Layer name: 'Screen', layerPriority: 3, transform: Layer.TRANSFORM_SCREEN, camera: @camera @normalLayers.push @cameraBorderLayer = new Layer name: 'Camera Border', layerPriority: 4, transform: Layer.TRANSFORM_SURFACE, camera: @camera @cameraBorderLayer.addChild @cameraBorder = new CameraBorder(bounds: @camera.bounds) - @normalStage.addChild @normalLayers... + @normalStage.addChild (layer.container for layer in @normalLayers)... canvasWidth = parseInt @normalCanvas.attr('width'), 10 canvasHeight = parseInt @normalCanvas.attr('height'), 10 @@ -234,7 +234,7 @@ module.exports = Surface = class Surface extends CocoClass drawCurrentFrame: (e) -> ++@totalFramesDrawn -# @normalStage.update e + @normalStage.update e @webGLStage.update e