@@ -74,7 +74,7 @@ public class Scene {
74
74
public InteractiveObject [] sceneSpawnRequestsCache = new InteractiveObject [5000 ];
75
75
public int currentPositionZ = 0 ;
76
76
public int [][][] heightMap ;
77
- public int anInt126 = 0 ;
77
+ public int mergeIndexTmp = 0 ;
78
78
public int [] mergeIndexA = new int [10000 ];
79
79
public int [] mergeIndexB = new int [10000 ];
80
80
@@ -1493,7 +1493,7 @@ public void click(int arg0, int arg1) {
1493
1493
1494
1494
public void mergeNormals (Model modelA , Model modelB , int i , int j , int k , boolean arg5 ) {
1495
1495
modelB .method822 ();
1496
- anInt126 ++;
1496
+ mergeIndexTmp ++;
1497
1497
int count = 0 ;
1498
1498
int [] vertices = modelB .verticesX ;
1499
1499
int vertexCount = modelB .vertexCount ;
@@ -1520,8 +1520,8 @@ public void mergeNormals(Model modelA, Model modelB, int i, int j, int k, boolea
1520
1520
_vertexNormal .z += offsetVertexNormal .z ;
1521
1521
_vertexNormal .magnitude += offsetVertexNormal .magnitude ;
1522
1522
count ++;
1523
- mergeIndexA [vertex ] = anInt126 ;
1524
- mergeIndexB [v ] = anInt126 ;
1523
+ mergeIndexA [vertex ] = mergeIndexTmp ;
1524
+ mergeIndexB [v ] = mergeIndexTmp ;
1525
1525
}
1526
1526
}
1527
1527
}
@@ -1531,12 +1531,12 @@ public void mergeNormals(Model modelA, Model modelB, int i, int j, int k, boolea
1531
1531
}
1532
1532
if (count >= 3 && arg5 ) {
1533
1533
for (int tri = 0 ; tri < modelA .triangleCount ; tri ++) {
1534
- if (mergeIndexA [modelA .trianglePointsX [tri ]] == anInt126 && mergeIndexA [modelA .trianglePointsY [tri ]] == anInt126 && mergeIndexA [modelA .trianglePointsZ [tri ]] == anInt126 ) {
1534
+ if (mergeIndexA [modelA .trianglePointsX [tri ]] == mergeIndexTmp && mergeIndexA [modelA .trianglePointsY [tri ]] == mergeIndexTmp && mergeIndexA [modelA .trianglePointsZ [tri ]] == mergeIndexTmp ) {
1535
1535
modelA .triangleDrawType [tri ] = -1 ;
1536
1536
}
1537
1537
}
1538
1538
for (int tri = 0 ; tri < modelB .triangleCount ; tri ++) {
1539
- if (mergeIndexB [modelB .trianglePointsX [tri ]] == anInt126 && mergeIndexB [modelB .trianglePointsY [tri ]] == anInt126 && mergeIndexB [modelB .trianglePointsZ [tri ]] == anInt126 ) {
1539
+ if (mergeIndexB [modelB .trianglePointsX [tri ]] == mergeIndexTmp && mergeIndexB [modelB .trianglePointsY [tri ]] == mergeIndexTmp && mergeIndexB [modelB .trianglePointsZ [tri ]] == mergeIndexTmp ) {
1540
1540
modelB .triangleDrawType [tri ] = -1 ;
1541
1541
}
1542
1542
}
0 commit comments