Revision 7625e47e
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/effect/FragmentEffectSaturation.java | ||
---|---|---|
52 | 52 |
mStatic0 = (Static1D)saturation; |
53 | 53 |
} |
54 | 54 |
|
55 |
if( region instanceof Static4D)
|
|
55 |
if( region == null )
|
|
56 | 56 |
{ |
57 |
mStaticRegion = (Static4D)region;
|
|
57 |
mStaticRegion = new Static4D(0,0,Float.MAX_VALUE, Float.MAX_VALUE);
|
|
58 | 58 |
} |
59 |
else if( region instanceof Dynamic4D)
|
|
59 |
else |
|
60 | 60 |
{ |
61 |
mDynamicRegion = (Dynamic4D)region; |
|
61 |
if (region instanceof Static4D) |
|
62 |
{ |
|
63 |
mStaticRegion = (Static4D) region; |
|
64 |
} |
|
65 |
else if (region instanceof Dynamic4D) |
|
66 |
{ |
|
67 |
mDynamicRegion = (Dynamic4D) region; |
|
68 |
} |
|
62 | 69 |
} |
63 | 70 |
} |
64 | 71 |
|
Also available in: Unified diff
Bugfix in Effect regions.