aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/elements
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-03-22 14:24:46 -0700
committerNivesh Rajbhandari2012-03-22 14:24:46 -0700
commit636014cf5d824909993d7dc3510fbe6ce2fc72f1 (patch)
tree2d148b138b9d283fdd6228d31801c5924cf70d01 /js/controllers/elements
parent6965b72f1f42f7280bc5e5e52d08b3d64d106831 (diff)
downloadninja-636014cf5d824909993d7dc3510fbe6ce2fc72f1.tar.gz
WebGL needs to have 3d styles to render.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/controllers/elements')
-rwxr-xr-xjs/controllers/elements/shapes-controller.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/controllers/elements/shapes-controller.js b/js/controllers/elements/shapes-controller.js
index 9b0159d4..689bc421 100755
--- a/js/controllers/elements/shapes-controller.js
+++ b/js/controllers/elements/shapes-controller.js
@@ -495,6 +495,7 @@ exports.ShapesController = Montage.create(CanvasController, {
495 world = new World(el, true); 495 world = new World(el, true);
496 el.elementModel.shapeModel.GLWorld = world; 496 el.elementModel.shapeModel.GLWorld = world;
497 el.elementModel.shapeModel.useWebGl = true; 497 el.elementModel.shapeModel.useWebGl = true;
498 el.elementModel.controller.setProperty(el, "-webkit-transform-style", "preserve-3d");
498 world.import(worldData, true); 499 world.import(worldData, true);
499 el.elementModel.shapeModel.GLGeomObj = world.getGeomRoot(); 500 el.elementModel.shapeModel.GLGeomObj = world.getGeomRoot();
500 501