* 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
This commit is contained in:
parent
45534ab0b8
commit
e71f33ef7a
@ -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() }.
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user