diff options
author | hwc487 | 2012-04-13 07:08:42 -0700 |
---|---|---|
committer | hwc487 | 2012-04-13 07:08:42 -0700 |
commit | 331b2ad4d602016f9bb3d03be759fd81fed50c10 (patch) | |
tree | 6bd56180f319d400881356626f32919a4d6b1f63 /js/lib/geom | |
parent | 1fa8516bcd0fb0277c13a7081b5a51ce041d3496 (diff) | |
download | ninja-331b2ad4d602016f9bb3d03be759fd81fed50c10.tar.gz |
Cloud Material
Diffstat (limited to 'js/lib/geom')
-rwxr-xr-x | js/lib/geom/rectangle.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/lib/geom/rectangle.js b/js/lib/geom/rectangle.js index f41c27f6..d4dd8033 100755 --- a/js/lib/geom/rectangle.js +++ b/js/lib/geom/rectangle.js | |||
@@ -12,7 +12,11 @@ var MaterialsModel = require("js/models/materials-model").MaterialsModel; | |||
12 | // GL representation of a rectangle. | 12 | // GL representation of a rectangle. |
13 | // Derived from class GeomObj | 13 | // Derived from class GeomObj |
14 | /////////////////////////////////////////////////////////////////////// | 14 | /////////////////////////////////////////////////////////////////////// |
15 | var Rectangle = function GLRectangle() { | 15 | var Rectangle = function GLRectangle() |
16 | { | ||
17 | if (!MaterialsModel) | ||
18 | MaterialsModel = require("js/models/materials-model").MaterialsModel; | ||
19 | |||
16 | // CONSTANTS | 20 | // CONSTANTS |
17 | this.N_TRIANGLES = 15; | 21 | this.N_TRIANGLES = 15; |
18 | 22 | ||