Revision 92403ff8
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/library/mesh/MeshBase.java | ||
---|---|---|
496 | 496 |
void textureMap(Static4D[] maps, int startComponent) |
497 | 497 |
{ |
498 | 498 |
int num_comp = mTexComponent.size(); |
499 |
if( startComponent>num_comp ) return; |
|
500 |
|
|
499 | 501 |
int num_maps = maps.length; |
500 | 502 |
int min = Math.min(num_comp-startComponent, num_maps); |
501 | 503 |
int vertex = startComponent>0 ? mTexComponent.get(startComponent-1).mEndIndex+1 : 0; |
Also available in: Unified diff
Do not crash if we try to map a texture component out of range.