From 8e43a46e3d79323fe06dc7771bc611a2c3c85c5c Mon Sep 17 00:00:00 2001 From: hwc487 Date: Mon, 30 Jan 2012 16:15:12 -0800 Subject: 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. --- js/helper-classes/RDGE/GLWorld.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'js/helper-classes/RDGE/GLWorld.js') 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 ) if (!this.hasAnimatedMaterials()) { this.myScene.render(); - this._canvas.task.stop(); + //this._canvas.task.stop(); + this._renderCount = 3; } } + else if (this._renderCount >= 0) + { + this._renderCount--; + if (this._renderCount == 0) + this._canvas.task.stop(); + } + } } else -- cgit v1.2.3