aboutsummaryrefslogtreecommitdiff
path: root/js/models/properties-3d.js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-01-30 15:53:11 -0800
committerNivesh Rajbhandari2012-01-30 15:53:11 -0800
commitb88ebb47d82fc1ffebea49c3bf182aaf3c9419af (patch)
tree44cb3aeec436161ea1a9cc73315d60a1d6e3d6a4 /js/models/properties-3d.js
parent8b8b9bc1cd033b483f3a5c57acc75dfb56e099a4 (diff)
downloadninja-b88ebb47d82fc1ffebea49c3bf182aaf3c9419af.tar.gz
Fixed issue with elements not drawing in the correct plane.
When first adding an element, force the 3d model to update with the element's webkit transform values. Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/models/properties-3d.js')
-rw-r--r--js/models/properties-3d.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/models/properties-3d.js b/js/models/properties-3d.js
index 3c809f06..cf4a045f 100644
--- a/js/models/properties-3d.js
+++ b/js/models/properties-3d.js
@@ -22,7 +22,7 @@ exports.Properties3D = Montage.create(Component, {
22 _world : {value : null, enumerable:true}, // keep a referenceto the GLWorld (if any) 22 _world : {value : null, enumerable:true}, // keep a referenceto the GLWorld (if any)
23 23
24 // Keep track of 3d properties 24 // Keep track of 3d properties
25 matrix3d : {value : [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1], enumerable: true}, 25 matrix3d : {value : null, enumerable: true},
26 26
27 xAngle : {value : 0, enumerable: true}, 27 xAngle : {value : 0, enumerable: true},
28 yAngle : {value : 0, enumerable: true}, 28 yAngle : {value : 0, enumerable: true},
@@ -33,7 +33,7 @@ exports.Properties3D = Montage.create(Component, {
33 z3D : {value : 0, enumerable: true}, 33 z3D : {value : 0, enumerable: true},
34 34
35 //TODO - not sure if this should be part of the tool or stage or a utility 35 //TODO - not sure if this should be part of the tool or stage or a utility
36 perspectiveDist : { value : 1400, enumerable: true}, 36 perspectiveDist : { value : null, enumerable: true},
37 perspectiveMode : { value : null, enumerable: true}, 37 perspectiveMode : { value : null, enumerable: true},
38 38
39 elementPlane : { value : null, enumerable: true}, 39 elementPlane : { value : null, enumerable: true},