From e71f33ef7a8aaad27e0eecb144cca2090cb3d520 Mon Sep 17 00:00:00 2001 From: "Sha..rd" Date: Sun, 20 May 2012 19:47:51 +0000 Subject: [PATCH] * Removed Geometry.setTransformRefresh() which was identical to Spatial.setTransformRefresh() * SimpleBatchNode now calls setTransformRefresh() directly instead of duplicating the code git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9405 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/scene/Geometry.java | 12 +++++++----- engine/src/core/com/jme3/scene/SimpleBatchNode.java | 4 +--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/engine/src/core/com/jme3/scene/Geometry.java b/engine/src/core/com/jme3/scene/Geometry.java index b02196da9..3ae9c3aad 100644 --- a/engine/src/core/com/jme3/scene/Geometry.java +++ b/engine/src/core/com/jme3/scene/Geometry.java @@ -373,11 +373,13 @@ public class Geometry extends Spatial { * Indicate that the transform of this spatial has changed and that * a refresh is required. */ - @Override - protected void setTransformRefresh() { - refreshFlags |= RF_TRANSFORM; - setBoundRefresh(); - } + // NOTE: Spatial has an identical implementation of this method, + // thus it was commented out. +// @Override +// protected void setTransformRefresh() { +// refreshFlags |= RF_TRANSFORM; +// setBoundRefresh(); +// } /** * Recomputes the matrix returned by {@link Geometry#getWorldMatrix() }. diff --git a/engine/src/core/com/jme3/scene/SimpleBatchNode.java b/engine/src/core/com/jme3/scene/SimpleBatchNode.java index 988451e2f..620e18704 100644 --- a/engine/src/core/com/jme3/scene/SimpleBatchNode.java +++ b/engine/src/core/com/jme3/scene/SimpleBatchNode.java @@ -37,9 +37,7 @@ public class SimpleBatchNode extends BatchNode { @Override protected void setTransformRefresh() { - - refreshFlags |= RF_TRANSFORM; - setBoundRefresh(); + super.setTransformRefresh(); for (Batch batch : batches.getArray()) { batch.geometry.setTransformRefresh(); }