diff options
author | hwc487 | 2012-05-14 10:37:03 -0700 |
---|---|---|
committer | hwc487 | 2012-05-14 10:37:03 -0700 |
commit | 25a2e1c5eb21a18caccc7a9435d835a3f5e7f3a0 (patch) | |
tree | e1de3241cebd49cadecfae0f59f09ef700ca9d30 /js/lib/geom/rectangle.js | |
parent | 5fcb96cae89007c684df3ce948831e2fcf9fd8b7 (diff) | |
download | ninja-25a2e1c5eb21a18caccc7a9435d835a3f5e7f3a0.tar.gz |
More merge problems
Diffstat (limited to 'js/lib/geom/rectangle.js')
-rwxr-xr-x | js/lib/geom/rectangle.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/js/lib/geom/rectangle.js b/js/lib/geom/rectangle.js index 22cbb5d4..ab0d7022 100755 --- a/js/lib/geom/rectangle.js +++ b/js/lib/geom/rectangle.js | |||
@@ -14,13 +14,12 @@ var MaterialsModel = require("js/models/materials-model").MaterialsModel; | |||
14 | // Derived from class GeomObj | 14 | // Derived from class GeomObj |
15 | /////////////////////////////////////////////////////////////////////// | 15 | /////////////////////////////////////////////////////////////////////// |
16 | exports.Rectangle = Object.create(GeomObj, { | 16 | exports.Rectangle = Object.create(GeomObj, { |
17 | { | ||
18 | if (!MaterialsModel) | ||
19 | MaterialsModel = require("js/models/materials-model").MaterialsModel; | ||
20 | |||
21 | // CONSTANTS | 17 | // CONSTANTS |
22 | N_TRIANGLES: { value : 15, writable: false }, // TODO - This is not being used anywhere. Remove? | 18 | N_TRIANGLES: { value : 15, writable: false }, // TODO - This is not being used anywhere. Remove? |
23 | 19 | ||
20 | //if (!MaterialsModel) | ||
21 | // MaterialsModel = require("js/models/materials-model").MaterialsModel; | ||
22 | |||
24 | /////////////////////////////////////////////////////////////////////// | 23 | /////////////////////////////////////////////////////////////////////// |
25 | // Instance variables | 24 | // Instance variables |
26 | /////////////////////////////////////////////////////////////////////// | 25 | /////////////////////////////////////////////////////////////////////// |
@@ -1180,8 +1179,10 @@ RectangleStroke.create = function( rectCtr, width, height, strokeWidth, tlRad, | |||
1180 | } | 1179 | } |
1181 | 1180 | ||
1182 | //refine the mesh for vertex deformations | 1181 | //refine the mesh for vertex deformations |
1183 | if (material) { | 1182 | if (material) |
1184 | if (material.hasVertexDeformation()) { | 1183 | { |
1184 | if (material.hasVertexDeformation()) | ||
1185 | { | ||
1185 | var paramRange = material.getVertexDeformationRange(); | 1186 | var paramRange = material.getVertexDeformationRange(); |
1186 | var tolerance = material.getVertexDeformationTolerance(); | 1187 | var tolerance = material.getVertexDeformationTolerance(); |
1187 | nVertices = ShapePrimitive.refineMesh( this.vertices, this.normals, this.uvs, this.indices, nVertices, paramRange, tolerance ); | 1188 | nVertices = ShapePrimitive.refineMesh( this.vertices, this.normals, this.uvs, this.indices, nVertices, paramRange, tolerance ); |