* Fix incorrect reset of Geometry members after cloning
This commit is contained in:
parent
4fdce777b5
commit
4ae99f9d5d
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user