Revision b376bfd7
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/objects/RubikObject.java | ||
---|---|---|
165 | 165 |
mEffects.apply(mScaleEffect); |
166 | 166 |
|
167 | 167 |
// Now postprocessed effects (the glow when you solve an object) require component centers. In |
168 |
// order for the center to be in front of the object, we need to set the center to be behind it.
|
|
168 |
// order for the effect to be in front of the object, we need to set the center to be behind it.
|
|
169 | 169 |
getMesh().setComponentCenter(0,0,0,-0.1f); |
170 | 170 |
|
171 | 171 |
attach( new DistortedNode(mTexture,mEffects,mMesh) ); |
Also available in: Unified diff
Fix for a crasher.