aboutsummaryrefslogtreecommitdiff
path: root/js/lib/drawing
diff options
context:
space:
mode:
authorhwc4872012-03-24 14:07:58 -0700
committerhwc4872012-03-24 14:07:58 -0700
commitcca20db1f346fc9bf2ead64c83e479f5f5ebf2d2 (patch)
tree4f5c42f0a1df00dcd1a2064dd176fcff7930ba47 /js/lib/drawing
parent62f4327f9b83760e52a1f6bf1e689b1e0a780fbb (diff)
parent7ee75fef18c21275cf29740a6fdd81ea90e41f45 (diff)
downloadninja-cca20db1f346fc9bf2ead64c83e479f5f5ebf2d2.tar.gz
Merge branch 'montage-integration' of github.com:Motorola-Mobility/ninja-internal into Textures
Diffstat (limited to 'js/lib/drawing')
-rwxr-xr-xjs/lib/drawing/world.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/lib/drawing/world.js b/js/lib/drawing/world.js
index 4140208c..d314760b 100755
--- a/js/lib/drawing/world.js
+++ b/js/lib/drawing/world.js
@@ -118,6 +118,8 @@ var World = function GLWorld( canvas, use3D, preserveDrawingBuffer ) {
118 118
119 this.getRenderer = function() { return this.renderer; }; 119 this.getRenderer = function() { return this.renderer; };
120 120
121 // Flag to play/pause animation at authortime
122 this._previewAnimation = true;
121 //////////////////////////////////////////////////////////////////////////////////// 123 ////////////////////////////////////////////////////////////////////////////////////
122 // RDGE 124 // RDGE
123 // local variables 125 // local variables
@@ -476,6 +478,10 @@ World.prototype.restartRenderLoop = function() {
476 if (this._allMapsLoaded) { 478 if (this._allMapsLoaded) {
477 //console.log( "starting task" ); 479 //console.log( "starting task" );
478 this._canvas.task.start(); 480 this._canvas.task.start();
481 if(!this._previewAnimation) {
482 //render only once if authortime animation is turned off
483 this._canvas.task.stop();
484 }
479 } else { 485 } else {
480 //console.log( "stopping task" ); 486 //console.log( "stopping task" );
481 this._canvas.task.stop(); 487 this._canvas.task.stop();
@@ -731,6 +737,8 @@ World.prototype.getShapeFromPoint = function( offsetX, offsetY ) {
731 } 737 }
732}; 738};
733 739
740
741
734World.prototype.exportJSON = function() 742World.prototype.exportJSON = function()
735{ 743{
736 // world properties 744 // world properties