aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCurtis Rueden <[email protected]>2015-04-09 13:35:15 -0500
committerCurtis Rueden <[email protected]>2015-10-06 07:00:50 -0500
commitaf0c5a2f9bdb2c79f132a2108bc42fbf9a569422 (patch)
tree568e4ccb1f7e71f1a579e6f2be0bfef10369d4ba /src
parentb18ec8f76feee4a6100fd2586ccd0543e06937c1 (diff)
Font3D: declare local variables when they are used
This will ease subsequent refactoring.
Diffstat (limited to 'src')
-rw-r--r--src/javax/media/j3d/Font3D.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/javax/media/j3d/Font3D.java b/src/javax/media/j3d/Font3D.java
index 4df6a6c..b9011e8 100644
--- a/src/javax/media/j3d/Font3D.java
+++ b/src/javax/media/j3d/Font3D.java
@@ -460,7 +460,6 @@ private static class IntVector {
vertices = null;
int[] contourCounts = new int[1];
- int currCoordIndex = 0, vertOffset = 0;
ArrayList<GeometryArray> triangData = new ArrayList<GeometryArray>();
Point3f q1 = new Point3f(), q2 = new Point3f(), q3 = new Point3f();
@@ -471,6 +470,7 @@ private static class IntVector {
}
//Now loop thru each island, calling triangulator once per island.
//Combine triangle data for all islands together in one object.
+ int vertOffset = 0;
NormalGenerator ng = new NormalGenerator();
for (i = 0; i < islandCounts.length; i++) {
contourCounts[0] = islandCounts[i].length;
@@ -510,7 +510,7 @@ private static class IntVector {
// last known non-degenerate normal
Vector3f goodNormal = new Vector3f();
-
+ int currCoordIndex = 0;
for (j=0;j < islandCounts.length;j++) {
GeometryArray ga = triangData.get(j);
vertOffset = ga.getVertexCount();