Revision c7e23561
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/objects/TwistyObject.java | ||
---|---|---|
34 | 34 |
import org.distorted.library.effect.VertexEffectQuaternion; |
35 | 35 |
import org.distorted.library.effect.VertexEffectRotate; |
36 | 36 |
import org.distorted.library.main.DistortedEffects; |
37 |
import org.distorted.library.main.DistortedLibrary; |
|
37 | 38 |
import org.distorted.library.main.DistortedNode; |
38 | 39 |
import org.distorted.library.main.DistortedTexture; |
39 | 40 |
import org.distorted.library.mesh.MeshBase; |
... | ... | |
390 | 391 |
createFaceTexture(canvas, paint, i, i*TEXTURE_HEIGHT); |
391 | 392 |
} |
392 | 393 |
|
393 |
mTexture.setTexture(bitmap); |
|
394 |
if( !mTexture.setTexture(bitmap) ) |
|
395 |
{ |
|
396 |
int max = DistortedLibrary.getMaxTextureSize(); |
|
397 |
FirebaseCrashlytics crashlytics = FirebaseCrashlytics.getInstance(); |
|
398 |
crashlytics.log("failed to set texture of size "+bitmap.getWidth()+"x"+bitmap.getHeight()+" max is "+max); |
|
399 |
} |
|
394 | 400 |
} |
395 | 401 |
|
396 | 402 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
src/main/java/org/distorted/objects/TwistySkewb.java | ||
---|---|---|
195 | 195 |
case 3: cuts[0] = -SQ3/12; |
196 | 196 |
cuts[1] = +SQ3/12; |
197 | 197 |
break; |
198 |
case 4: cuts[0] = -SQ3/9; |
|
199 |
cuts[1] = 0; |
|
200 |
cuts[2] = +SQ3/9; |
|
201 |
break; |
|
198 | 202 |
} |
199 | 203 |
return cuts; |
200 | 204 |
} |
Also available in: Unified diff
Report to Crashlytics if the fail to set texture due to it being too large.