diff options
author | hwc487 | 2012-01-30 16:15:12 -0800 |
---|---|---|
committer | hwc487 | 2012-01-30 16:15:12 -0800 |
commit | 8e43a46e3d79323fe06dc7771bc611a2c3c85c5c (patch) | |
tree | 37773f0a4d3212ff633690b270a4756c02d2b2bc /js/helper-classes/RDGE/GLWorld.js | |
parent | c41d2c2b749b67921f243fb7594ce0cdb1ccce36 (diff) | |
download | ninja-8e43a46e3d79323fe06dc7771bc611a2c3c85c5c.tar.gz |
Renderer startup handling of non-animated materials.
Changed zoom from the document bar to keep the location center of the viewable portion of the document fixed.
Diffstat (limited to 'js/helper-classes/RDGE/GLWorld.js')
-rw-r--r-- | js/helper-classes/RDGE/GLWorld.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/js/helper-classes/RDGE/GLWorld.js b/js/helper-classes/RDGE/GLWorld.js index dd9b6977..b84bb585 100644 --- a/js/helper-classes/RDGE/GLWorld.js +++ b/js/helper-classes/RDGE/GLWorld.js | |||
@@ -248,9 +248,17 @@ function GLWorld( canvas, use3D ) | |||
248 | if (!this.hasAnimatedMaterials()) | 248 | if (!this.hasAnimatedMaterials()) |
249 | { | 249 | { |
250 | this.myScene.render(); | 250 | this.myScene.render(); |
251 | this._canvas.task.stop(); | 251 | //this._canvas.task.stop(); |
252 | this._renderCount = 3; | ||
252 | } | 253 | } |
253 | } | 254 | } |
255 | else if (this._renderCount >= 0) | ||
256 | { | ||
257 | this._renderCount--; | ||
258 | if (this._renderCount == 0) | ||
259 | this._canvas.task.stop(); | ||
260 | } | ||
261 | |||
254 | } | 262 | } |
255 | } | 263 | } |
256 | else | 264 | else |