aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-03-27 10:32:26 -0700
committerNivesh Rajbhandari2012-03-27 10:32:26 -0700
commit62438ba52de51bb8ae20de07ec2f4dad55b9a929 (patch)
tree3560cfe3c39aaf1027e89a337bb15a1db1bc884f /js
parent71b2d1f4ece0f0760bc15900ee0b1f937a9b9431 (diff)
downloadninja-62438ba52de51bb8ae20de07ec2f4dad55b9a929.tar.gz
Build elements' properties3d values on file open.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js')
-rwxr-xr-xjs/lib/NJUtils.js3
-rwxr-xr-xjs/models/properties-3d.js2
2 files changed, 4 insertions, 1 deletions
diff --git a/js/lib/NJUtils.js b/js/lib/NJUtils.js
index 0457120b..c01d865b 100755
--- a/js/lib/NJUtils.js
+++ b/js/lib/NJUtils.js
@@ -182,6 +182,9 @@ exports.NJUtils = Object.create(Object.prototype, {
182 break; 182 break;
183 } 183 }
184 this.makeElementModel(el, selection, controller, isShape); 184 this.makeElementModel(el, selection, controller, isShape);
185 if(el.elementModel && el.elementModel.props3D) {
186 el.elementModel.props3D.init(el, (selection === "Stage"));
187 }
185 } 188 }
186 }, 189 },
187 190
diff --git a/js/models/properties-3d.js b/js/models/properties-3d.js
index 087e794f..0a7cf8bb 100755
--- a/js/models/properties-3d.js
+++ b/js/models/properties-3d.js
@@ -67,7 +67,7 @@ exports.Properties3D = Montage.create(Component, {
67 this.matrix3d = Matrix.I(4); 67 this.matrix3d = Matrix.I(4);
68 } 68 }
69 69
70 if(this.perspectiveDist === null) { 70 if(this.perspectiveDist == null) {
71 this.perspectiveDist = 1400; 71 this.perspectiveDist = 1400;
72 } 72 }
73 73