Revision d13df23d
Added by Leszek Koltunski over 2 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 |
|
Also available in: Unified diff
Important bugfix.