aboutsummaryrefslogtreecommitdiff
path: root/js/lib
diff options
context:
space:
mode:
authorhwc4872012-03-27 03:23:01 -0700
committerhwc4872012-03-27 03:23:01 -0700
commit7fbc78522cc5b5e3df471d9f9e53fdde58f83892 (patch)
treef056c89bac0f97a54ef329ecbcbd1bfa6fe1d227 /js/lib
parent2f66a9ab38f761b7796800bb37f8146f140db40b (diff)
parent309dde5a8c4599cef6a1052c1ff9ee1ad8ec5858 (diff)
downloadninja-7fbc78522cc5b5e3df471d9f9e53fdde58f83892.tar.gz
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Textures
Diffstat (limited to 'js/lib')
-rwxr-xr-xjs/lib/drawing/world.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/js/lib/drawing/world.js b/js/lib/drawing/world.js
index e3818178..ebeeeb20 100755
--- a/js/lib/drawing/world.js
+++ b/js/lib/drawing/world.js
@@ -239,7 +239,7 @@ var World = function GLWorld( canvas, use3D, preserveDrawingBuffer ) {
239 if (this._canvas.task) { 239 if (this._canvas.task) {
240 this._firstRender = false; 240 this._firstRender = false;
241 241
242 if (!this.hasAnimatedMaterials()) { 242 if (!this.hasAnimatedMaterials() || !this._previewAnimation) {
243 this._canvas.task.stop(); 243 this._canvas.task.stop();
244 //this._renderCount = 10; 244 //this._renderCount = 10;
245 } 245 }
@@ -479,10 +479,6 @@ World.prototype.restartRenderLoop = function() {
479 if (this._allMapsLoaded) { 479 if (this._allMapsLoaded) {
480 //console.log( "starting task" ); 480 //console.log( "starting task" );
481 this._canvas.task.start(); 481 this._canvas.task.start();
482 if(!this._previewAnimation) {
483 //render only once if authortime animation is turned off
484 this._canvas.task.stop();
485 }
486 } else { 482 } else {
487 //console.log( "stopping task" ); 483 //console.log( "stopping task" );
488 this._canvas.task.stop(); 484 this._canvas.task.stop();