From 2946d01666ff81f913bd06d1ac1381ed42b4a010 Mon Sep 17 00:00:00 2001 From: Nivesh Rajbhandari Date: Fri, 23 Mar 2012 13:37:31 -0700 Subject: Check for a authortime animation setting in the draw routine for WebGL. Signed-off-by: Nivesh Rajbhandari --- js/lib/drawing/world.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'js') diff --git a/js/lib/drawing/world.js b/js/lib/drawing/world.js index b87c6272..fb787256 100755 --- a/js/lib/drawing/world.js +++ b/js/lib/drawing/world.js @@ -238,7 +238,7 @@ var World = function GLWorld( canvas, use3D, preserveDrawingBuffer ) { if (this._canvas.task) { this._firstRender = false; - if (!this.hasAnimatedMaterials()) { + if (!this.hasAnimatedMaterials() || !this._previewAnimation) { this._canvas.task.stop(); //this._renderCount = 10; } @@ -477,10 +477,6 @@ World.prototype.restartRenderLoop = function() { if (this._allMapsLoaded) { //console.log( "starting task" ); this._canvas.task.start(); - if(!this._previewAnimation) { - //render only once if authortime animation is turned off - this._canvas.task.stop(); - } } else { //console.log( "stopping task" ); this._canvas.task.stop(); -- cgit v1.2.3 From a806c422905adf0fa5c244d751535c615ec5d8c7 Mon Sep 17 00:00:00 2001 From: Nivesh Rajbhandari Date: Sat, 24 Mar 2012 13:57:23 -0700 Subject: Check for a authortime animation setting in the draw routine for WebGL. Signed-off-by: Nivesh Rajbhandari --- js/lib/drawing/world.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/lib/drawing/world.js b/js/lib/drawing/world.js index fd833e4b..781695b6 100755 --- a/js/lib/drawing/world.js +++ b/js/lib/drawing/world.js @@ -238,7 +238,7 @@ var World = function GLWorld( canvas, use3D, preserveDrawingBuffer ) { if (this._canvas.task) { this._firstRender = false; - if (!this.hasAnimatedMaterials() || !this._previewAnimation) { + if (!this.hasAnimatedMaterials() || !this._previewAnimation) { this._canvas.task.stop(); //this._renderCount = 10; } -- cgit v1.2.3