* 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
|
* Indicate that the transform of this spatial has changed and that
|
||||||
* a refresh is required.
|
* a refresh is required.
|
||||||
*/
|
*/
|
||||||
@Override
|
// NOTE: Spatial has an identical implementation of this method,
|
||||||
protected void setTransformRefresh() {
|
// thus it was commented out.
|
||||||
refreshFlags |= RF_TRANSFORM;
|
// @Override
|
||||||
setBoundRefresh();
|
// protected void setTransformRefresh() {
|
||||||
}
|
// refreshFlags |= RF_TRANSFORM;
|
||||||
|
// setBoundRefresh();
|
||||||
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Recomputes the matrix returned by {@link Geometry#getWorldMatrix() }.
|
* Recomputes the matrix returned by {@link Geometry#getWorldMatrix() }.
|
||||||
|
@ -37,9 +37,7 @@ public class SimpleBatchNode extends BatchNode {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void setTransformRefresh() {
|
protected void setTransformRefresh() {
|
||||||
|
super.setTransformRefresh();
|
||||||
refreshFlags |= RF_TRANSFORM;
|
|
||||||
setBoundRefresh();
|
|
||||||
for (Batch batch : batches.getArray()) {
|
for (Batch batch : batches.getArray()) {
|
||||||
batch.geometry.setTransformRefresh();
|
batch.geometry.setTransformRefresh();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user