Revision 427ba5bf
Added by Leszek Koltunski 2 months ago
src/main/java/org/distorted/config/ConfigRenderer.java | ||
---|---|---|
45 | 45 |
private boolean mResettingObject, mInitialPhase, mEffectApplied; |
46 | 46 |
private long mStartTime; |
47 | 47 |
private final Static1D mAngle; |
48 |
private long mRotateID; |
|
48 | 49 |
|
49 | 50 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
50 | 51 |
|
... | ... | |
89 | 90 |
|
90 | 91 |
MatrixEffectRotate effect = new MatrixEffectRotate(mAngle, axis, center ); |
91 | 92 |
object.applyEffect(effect,0); |
93 |
mRotateID = effect.getID(); |
|
92 | 94 |
} |
93 | 95 |
|
94 | 96 |
boolean done = continueResetting(time); |
95 |
if( done ) mResettingObject = false; |
|
97 |
if( done ) |
|
98 |
{ |
|
99 |
mResettingObject = false; |
|
100 |
mEffectApplied = false; |
|
101 |
|
|
102 |
ObjectControl control = mView.getObjectControl(); |
|
103 |
TwistyObject object = control.getObject(); |
|
104 |
object.removeEffect(mRotateID); |
|
105 |
} |
|
96 | 106 |
} |
97 | 107 |
} |
98 | 108 |
|
Also available in: Unified diff
progress with configurable stickers