diff options
author | Nivesh Rajbhandari | 2012-03-27 10:32:26 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-27 10:32:26 -0700 |
commit | 62438ba52de51bb8ae20de07ec2f4dad55b9a929 (patch) | |
tree | 3560cfe3c39aaf1027e89a337bb15a1db1bc884f /js | |
parent | 71b2d1f4ece0f0760bc15900ee0b1f937a9b9431 (diff) | |
download | ninja-62438ba52de51bb8ae20de07ec2f4dad55b9a929.tar.gz |
Build elements' properties3d values on file open.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js')
-rwxr-xr-x | js/lib/NJUtils.js | 3 | ||||
-rwxr-xr-x | js/models/properties-3d.js | 2 |
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 | ||