From 4ae99f9d5d599cca274a543d93425951c66edaa2 Mon Sep 17 00:00:00 2001 From: shadowislord Date: Sat, 28 Jun 2014 20:49:21 -0400 Subject: [PATCH] * Fix incorrect reset of Geometry members after cloning --- jme3-core/src/main/java/com/jme3/scene/Geometry.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/scene/Geometry.java b/jme3-core/src/main/java/com/jme3/scene/Geometry.java index b33152c07..50ca01912 100644 --- a/jme3-core/src/main/java/com/jme3/scene/Geometry.java +++ b/jme3-core/src/main/java/com/jme3/scene/Geometry.java @@ -486,9 +486,9 @@ public class Geometry extends Spatial { // This geometry is managed, // but the cloned one is not attached to anything, hence not managed. - if (isGrouped()) { - groupNode = null; - startIndex = -1; + if (geomClone.isGrouped()) { + geomClone.groupNode = null; + geomClone.startIndex = -1; } geomClone.cachedWorldMat = cachedWorldMat.clone();