aboutsummaryrefslogtreecommitdiff
path: root/js/tools/Rotate3DToolBase.js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-02-09 08:47:33 -0800
committerNivesh Rajbhandari2012-02-09 08:47:33 -0800
commit4bd8b5ce3286d472fd852dc53ef07e90aadfb7e9 (patch)
tree6b70c0c4307fca62c3e0ecc6bc3898f2bc015ae6 /js/tools/Rotate3DToolBase.js
parent529463fad4cf0a13293187b47e6b5081f3446cad (diff)
downloadninja-4bd8b5ce3286d472fd852dc53ef07e90aadfb7e9.tar.gz
Fixed runtime error when using 3d tools without any items selected.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/tools/Rotate3DToolBase.js')
-rw-r--r--js/tools/Rotate3DToolBase.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tools/Rotate3DToolBase.js b/js/tools/Rotate3DToolBase.js
index 6e17864b..aa91b2f4 100644
--- a/js/tools/Rotate3DToolBase.js
+++ b/js/tools/Rotate3DToolBase.js
@@ -254,7 +254,7 @@ exports.Rotate3DToolBase = Montage.create(ModifierToolBase, {
254 captureSelectionDrawn: { 254 captureSelectionDrawn: {
255 value: function(event){ 255 value: function(event){
256 this._origin = null; 256 this._origin = null;
257 this._targets = null; 257 this._targets = [];
258 this._startOriginArray = null; 258 this._startOriginArray = null;
259 259
260 var len = this.application.ninja.selectedElements.length; 260 var len = this.application.ninja.selectedElements.length;