From 4bd8b5ce3286d472fd852dc53ef07e90aadfb7e9 Mon Sep 17 00:00:00 2001 From: Nivesh Rajbhandari Date: Thu, 9 Feb 2012 08:47:33 -0800 Subject: Fixed runtime error when using 3d tools without any items selected. Signed-off-by: Nivesh Rajbhandari --- js/tools/Rotate3DToolBase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/tools/Rotate3DToolBase.js') 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, { captureSelectionDrawn: { value: function(event){ this._origin = null; - this._targets = null; + this._targets = []; this._startOriginArray = null; var len = this.application.ninja.selectedElements.length; -- cgit v1.2.3