Revision 4c68cfd3
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/library/mesh/DeferredJobs.java | ||
---|---|---|
56 | 56 |
mTarget = target; |
57 | 57 |
mSource = source; |
58 | 58 |
mArg = arg; |
59 |
mEffects= new EffectQueueVertex(); |
|
60 |
mEffects.add(effect); |
|
59 |
|
|
60 |
if( effect!=null ) |
|
61 |
{ |
|
62 |
mEffects= new EffectQueueVertex(); |
|
63 |
mEffects.add(effect); |
|
64 |
} |
|
61 | 65 |
} |
62 | 66 |
|
63 | 67 |
void addEffect(VertexEffect effect) |
... | ... | |
82 | 86 |
|
83 | 87 |
void clear() |
84 | 88 |
{ |
85 |
mEffects.removeAll(false); |
|
89 |
if( mEffects!=null ) mEffects.removeAll(false);
|
|
86 | 90 |
} |
87 | 91 |
} |
88 | 92 |
|
Also available in: Unified diff
Progress with DeferredJobs app (proves with the library part does not work :)