Project

General

Profile

« Previous | Next » 

Revision 7625e47e

Added by Leszek Koltunski almost 7 years ago

Bugfix in Effect regions.

View differences:

src/main/java/org/distorted/library/effect/VertexEffectDeform.java
61 61
      mDynamicCenter = (Dynamic3D)center;
62 62
      }
63 63

  
64
    if( region instanceof Static4D)
64
    if( region == null )
65 65
      {
66
      mStaticRegion = (Static4D)region;
66
      mStaticRegion = new Static4D(0,0,Float.MAX_VALUE, Float.MAX_VALUE);
67 67
      }
68
    else if( region instanceof Dynamic4D)
68
    else
69 69
      {
70
      mDynamicRegion = (Dynamic4D)region;
70
      if (region instanceof Static4D)
71
        {
72
        mStaticRegion = (Static4D) region;
73
        }
74
      else if (region instanceof Dynamic4D)
75
        {
76
        mDynamicRegion = (Dynamic4D) region;
77
        }
71 78
      }
72 79
    }
73 80

  

Also available in: Unified diff