aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/3D
diff options
context:
space:
mode:
authorAnanya Sen2012-02-24 15:30:55 -0800
committerAnanya Sen2012-02-24 15:30:55 -0800
commitb056b4bef5982466d80d72e5cbb31e63087990e1 (patch)
tree30f95ff34a3664eed8d036ec57627647c660390a /js/helper-classes/3D
parent85d59d57ea556b114c5cad9b2ec67ccc27119380 (diff)
downloadninja-b056b4bef5982466d80d72e5cbb31e63087990e1.tar.gz
- added closeDocument event for timeline
- minor bug fixes Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/helper-classes/3D')
-rwxr-xr-xjs/helper-classes/3D/draw-utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/helper-classes/3D/draw-utils.js b/js/helper-classes/3D/draw-utils.js
index 37fc1cfc..85870097 100755
--- a/js/helper-classes/3D/draw-utils.js
+++ b/js/helper-classes/3D/draw-utils.js
@@ -126,8 +126,8 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, {
126 this.setWorkingPlane( Vector.create( [0,0,1,0] ) ); 126 this.setWorkingPlane( Vector.create( [0,0,1,0] ) );
127 127
128 //Loop through all the top-level children of the current document and call drawUtils.addElement on them 128 //Loop through all the top-level children of the current document and call drawUtils.addElement on them
129 if(this.application.ninja.currentDocument.documentRoot.hasChildNodes()){ 129 if(this.application.ninja.currentDocument._liveNodeList.length > 0){
130 documentRootChildren = this.application.ninja.currentDocument.documentRoot.childNodes; 130 documentRootChildren = this.application.ninja.currentDocument._liveNodeList;
131 for(i=0;i<documentRootChildren.length;i++){ 131 for(i=0;i<documentRootChildren.length;i++){
132 this.addElement(documentRootChildren[i]); 132 this.addElement(documentRootChildren[i]);
133 } 133 }