Skip to content

Commit e0230a4

Browse files
stephengoldNehon
authored andcommitted
roll back PR 746 (worldTransform to identity) in master branch
1 parent 5c9ef17 commit e0230a4

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

jme3-core/src/main/java/com/jme3/scene/Geometry.java

+3-15
Original file line numberDiff line numberDiff line change
@@ -137,20 +137,6 @@ public boolean checkCulling(Camera cam) {
137137
return super.checkCulling(cam);
138138
}
139139

140-
/**
141-
* Update the world transform of this Geometry and clear the
142-
* TRANSFORM refresh flag.
143-
*/
144-
@Override
145-
void checkDoTransformUpdate() {
146-
if (ignoreTransform) {
147-
worldTransform.loadIdentity();
148-
refreshFlags &= ~RF_TRANSFORM;
149-
} else {
150-
super.checkDoTransformUpdate();
151-
}
152-
}
153-
154140
/**
155141
* @return If ignoreTransform mode is set.
156142
*
@@ -165,7 +151,6 @@ public boolean isIgnoreTransform() {
165151
*/
166152
public void setIgnoreTransform(boolean ignoreTransform) {
167153
this.ignoreTransform = ignoreTransform;
168-
setTransformRefresh();
169154
}
170155

171156
/**
@@ -413,6 +398,9 @@ public void computeWorldMatrix() {
413398

414399
// Compute the cached world matrix
415400
cachedWorldMat.loadIdentity();
401+
if (ignoreTransform) {
402+
return;
403+
}
416404
cachedWorldMat.setRotationQuaternion(worldTransform.getRotation());
417405
cachedWorldMat.setTranslation(worldTransform.getTranslation());
418406

0 commit comments

Comments
 (0)