diff options
author | Kevin Rushforth <[email protected]> | 2006-11-07 16:21:20 +0000 |
---|---|---|
committer | Kevin Rushforth <[email protected]> | 2006-11-07 16:21:20 +0000 |
commit | 6b79268326f663661c7dbb7fbf47d61f94f4fbea (patch) | |
tree | 2066880732fb4cec33c8825aa53d1cd22e116603 /src/classes | |
parent | 200d3cd5eb60bd9905b221d77b09272ed09bf416 (diff) |
Issue 131: Fixed a startup freeze problem with JCanvas3D
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@741 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/classes')
-rw-r--r-- | src/classes/share/javax/media/j3d/Canvas3D.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/classes/share/javax/media/j3d/Canvas3D.java b/src/classes/share/javax/media/j3d/Canvas3D.java index 0758803..f617565 100644 --- a/src/classes/share/javax/media/j3d/Canvas3D.java +++ b/src/classes/share/javax/media/j3d/Canvas3D.java @@ -1317,6 +1317,13 @@ public class Canvas3D extends Canvas { view.universe.checkForEnableEvents(); } + // Issue 131: Call redraw() if this is an auto-off-screen Canvas3D, + // so it will start up correctly. It isn't necessary to do this for + // on-screen Canvas3Ds because redraw() will be called when we + // get the first paint(). + if (offScreen) { + redraw(); + } } // When this canvas is removed a frame, this notification gets called. We |