diff options
author | Nivesh Rajbhandari | 2012-03-22 14:24:46 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-22 14:24:46 -0700 |
commit | 636014cf5d824909993d7dc3510fbe6ce2fc72f1 (patch) | |
tree | 2d148b138b9d283fdd6228d31801c5924cf70d01 /js/controllers | |
parent | 6965b72f1f42f7280bc5e5e52d08b3d64d106831 (diff) | |
download | ninja-636014cf5d824909993d7dc3510fbe6ce2fc72f1.tar.gz |
WebGL needs to have 3d styles to render.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/elements/shapes-controller.js | 1 |
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 | ||