2
0
Эх сурвалжийг харах

* 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

Sha..rd 13 жил өмнө
parent
commit
e71f33ef7a

+ 7 - 5
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() }.

+ 1 - 3
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();
         }