Project

General

Profile

« Previous | Next » 

Revision 402b1325

Added by Leszek Koltunski over 1 year ago

Bugfix - very large clusters of bandaged elements in the Creator Bandaged Pyraminx (larger than 120 walls ) would previously crush.

View differences:

src/main/java/org/distorted/bandaged/BandagedCreatorRenderer.java
42 42
import org.distorted.objectlib.bandaged.BandagedObject;
43 43
import org.distorted.objectlib.bandaged.LocallyBandagedList;
44 44
import org.distorted.objectlib.json.JsonWriter;
45
import org.distorted.objectlib.main.ObjectControl;
45 46
import org.distorted.objectlib.main.TwistyObject;
46 47

  
47 48
import org.json.JSONException;
......
216 217
   public void onSurfaceCreated(GL10 glUnused, EGLConfig config)
217 218
      {
218 219
      DistortedLibrary.setMax(EffectType.VERTEX,0);
219
      MeshBase.setMaxEffComponents(120); // what?
220
      MeshBase.setMaxEffComponents(ObjectControl.MAX_MOVING_PARTS);
220 221
      FragmentEffectBrightness.enable();
221 222
      DistortedLibrary.onSurfaceCreated(this,1);
222 223
      DistortedLibrary.setCull(true);

Also available in: Unified diff