diff options
author | Nivesh Rajbhandari | 2012-03-23 11:41:11 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-23 11:41:11 -0700 |
commit | 8e9ac98ea1001289cb3834b262200eee253cb408 (patch) | |
tree | 7263d112fb30137e3122c4ca9405097fa8bd9d13 /js/controllers/elements | |
parent | 388d8e469e4641553b67aece4fc1d56d9789fff5 (diff) | |
download | ninja-8e9ac98ea1001289cb3834b262200eee253cb408.tar.gz |
Respect play/pause WebGL animation when saving files and re-rendering caused by geometry changes.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/controllers/elements')
-rwxr-xr-x | js/controllers/elements/shapes-controller.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/controllers/elements/shapes-controller.js b/js/controllers/elements/shapes-controller.js index 9b2fa618..b060b751 100755 --- a/js/controllers/elements/shapes-controller.js +++ b/js/controllers/elements/shapes-controller.js | |||
@@ -109,11 +109,13 @@ exports.ShapesController = Montage.create(CanvasController, { | |||
109 | if(value) | 109 | if(value) |
110 | { | 110 | { |
111 | el.elementModel.shapeModel.animate = true; | 111 | el.elementModel.shapeModel.animate = true; |
112 | el.elementModel.shapeModel.GLWorld._previewAnimation = true; | ||
112 | el.elementModel.shapeModel.GLWorld.restartRenderLoop(); | 113 | el.elementModel.shapeModel.GLWorld.restartRenderLoop(); |
113 | } | 114 | } |
114 | else | 115 | else |
115 | { | 116 | { |
116 | el.elementModel.shapeModel.animate = false; | 117 | el.elementModel.shapeModel.animate = false; |
118 | el.elementModel.shapeModel.GLWorld._previewAnimation = false; | ||
117 | el.elementModel.shapeModel.GLWorld._canvas.task.stop(); | 119 | el.elementModel.shapeModel.GLWorld._canvas.task.stop(); |
118 | } | 120 | } |
119 | break; | 121 | break; |