aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChien Yang <[email protected]>2008-01-31 19:35:21 +0000
committerChien Yang <[email protected]>2008-01-31 19:35:21 +0000
commit64682cacf30bf24c318777dbba9f1d0671bff976 (patch)
treef27e1dbae781c8b3f27ec28fff8fef4f86358a52 /src
parent899eea37a600dff796666c9f6944f4ddf87b6254 (diff)
Issue number: 563
Obtained from: mcneillk Submitted by: mcneillk Reviewed by: jada Fix to fix 563 - Background cloneNode() fails with Background geometry git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@885 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src')
-rw-r--r--src/classes/share/javax/media/j3d/Background.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/classes/share/javax/media/j3d/Background.java b/src/classes/share/javax/media/j3d/Background.java
index eaee92c..478a220 100644
--- a/src/classes/share/javax/media/j3d/Background.java
+++ b/src/classes/share/javax/media/j3d/Background.java
@@ -717,6 +717,8 @@ public class Background extends Leaf {
rt.initColor(c);
rt.initApplicationBounds(attr.getApplicationBounds());
rt.initGeometry(attr.getGeometry());
+ // issue # 563: add call to cloneTree()
+ rt.initGeometry((BranchGroup) (attr.getGeometry() == null ? null : attr.getGeometry().cloneTree(true)));
rt.initImage((ImageComponent2D) getNodeComponent(
attr.getImage(),
forceDuplicate,