aboutsummaryrefslogtreecommitdiff
path: root/js/lib/drawing/world.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/drawing/world.js')
-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