Revision d13df23d
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/effects/scramble/ScrambleEffect.java | ||
---|---|---|
266 | 266 |
mObject = cont.getObject(); |
267 | 267 |
mController= cont; |
268 | 268 |
|
269 |
mController.solve(); |
|
269 |
// NOT mController.solve() !! This would be a very subtle bug. We need to do this immediately, |
|
270 |
// because here we are already inside the mController.preRender() function (doing 'scrambleObjectNow') |
|
271 |
// and doing a delayed 'solve()' here would mean we'd be sometimes first doing the first rotation, |
|
272 |
// and only after it - the solve. |
|
273 |
mObject.solve(); |
|
270 | 274 |
|
271 | 275 |
mBasicAngle = mObject.getBasicAngle(); |
272 | 276 |
|
src/main/java/org/distorted/objects/TwistyObject.java | ||
---|---|---|
1134 | 1134 |
mRotationAngle.resetToBeginning(); |
1135 | 1135 |
mRotationAngle.add(new Static1D(0)); |
1136 | 1136 |
mRotationAngle.add(new Static1D(angle)); |
1137 |
mRotateEffect.setMeshAssociation( mRotRowBitmap<<(axis* ObjectList.MAX_OBJECT_SIZE) , -1);
|
|
1137 |
mRotateEffect.setMeshAssociation( mRotRowBitmap<<(axis*ObjectList.MAX_OBJECT_SIZE) , -1); |
|
1138 | 1138 |
mRotateEffect.notifyWhenFinished(listener); |
1139 | 1139 |
|
1140 | 1140 |
return mRotateEffect.getID(); |
Also available in: Unified diff
Important bugfix.