From 64682cacf30bf24c318777dbba9f1d0671bff976 Mon Sep 17 00:00:00 2001 From: Chien Yang Date: Thu, 31 Jan 2008 19:35:21 +0000 Subject: 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 --- src/classes/share/javax/media/j3d/Background.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/classes') 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, -- cgit v1.2.3