File tree 1 file changed +3
-15
lines changed
jme3-core/src/main/java/com/jme3/scene
1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -137,20 +137,6 @@ public boolean checkCulling(Camera cam) {
137
137
return super .checkCulling (cam );
138
138
}
139
139
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
-
154
140
/**
155
141
* @return If ignoreTransform mode is set.
156
142
*
@@ -165,7 +151,6 @@ public boolean isIgnoreTransform() {
165
151
*/
166
152
public void setIgnoreTransform (boolean ignoreTransform ) {
167
153
this .ignoreTransform = ignoreTransform ;
168
- setTransformRefresh ();
169
154
}
170
155
171
156
/**
@@ -413,6 +398,9 @@ public void computeWorldMatrix() {
413
398
414
399
// Compute the cached world matrix
415
400
cachedWorldMat .loadIdentity ();
401
+ if (ignoreTransform ) {
402
+ return ;
403
+ }
416
404
cachedWorldMat .setRotationQuaternion (worldTransform .getRotation ());
417
405
cachedWorldMat .setTranslation (worldTransform .getTranslation ());
418
406
You can’t perform that action at this time.
0 commit comments