diff options
author | hwc487 | 2012-05-31 17:11:08 -0700 |
---|---|---|
committer | hwc487 | 2012-05-31 17:11:08 -0700 |
commit | 1c445cf5d905f79937998cf2f1115594ea8c1074 (patch) | |
tree | 35271ad7ffec86fde9102af3dd954fa3a2974582 /js/tools/modifier-tool-base.js | |
parent | 335ce503996e3ccbd2909086328d0a31fbd03370 (diff) | |
parent | 6042bdc5f2aada4412912fd01602d32c9088dc26 (diff) | |
download | ninja-1c445cf5d905f79937998cf2f1115594ea8c1074.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Textures
Conflicts:
js/io/system/ninjalibrary.json
Diffstat (limited to 'js/tools/modifier-tool-base.js')
-rwxr-xr-x | js/tools/modifier-tool-base.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tools/modifier-tool-base.js b/js/tools/modifier-tool-base.js index d023206a..6aea77aa 100755 --- a/js/tools/modifier-tool-base.js +++ b/js/tools/modifier-tool-base.js | |||
@@ -39,7 +39,7 @@ exports.ModifierToolBase = Montage.create(DrawingTool, { | |||
39 | return this._clickedObject; | 39 | return this._clickedObject; |
40 | }, | 40 | }, |
41 | set: function (value) { | 41 | set: function (value) { |
42 | if(value === this.application.ninja.currentDocument.documentRoot) | 42 | if(value === this.application.ninja.currentDocument.model.documentRoot) |
43 | { | 43 | { |
44 | this._clickedObject = this._target; | 44 | this._clickedObject = this._target; |
45 | } | 45 | } |
@@ -64,7 +64,7 @@ exports.ModifierToolBase = Montage.create(DrawingTool, { | |||
64 | value: function(hitRec) | 64 | value: function(hitRec) |
65 | { | 65 | { |
66 | var elt = hitRec.getElt(); | 66 | var elt = hitRec.getElt(); |
67 | if(elt === this.application.ninja.currentDocument.documentRoot) | 67 | if(elt === this.application.ninja.currentDocument.model.documentRoot) |
68 | { | 68 | { |
69 | elt = this._target; | 69 | elt = this._target; |
70 | } | 70 | } |
@@ -531,7 +531,7 @@ exports.ModifierToolBase = Montage.create(DrawingTool, { | |||
531 | 531 | ||
532 | snapManager.enableSnapAlign( snapManager.snapAlignEnabledAppLevel() ); | 532 | snapManager.enableSnapAlign( snapManager.snapAlignEnabledAppLevel() ); |
533 | if ( snapManager.snapAlignEnabled() && this._clickedObject && | 533 | if ( snapManager.snapAlignEnabled() && this._clickedObject && |
534 | (this._clickedObject !== this.application.ninja.currentDocument.documentRoot) ) | 534 | (this._clickedObject !== this.application.ninja.currentDocument.model.documentRoot) ) |
535 | { | 535 | { |
536 | var alignBounds = !hitRec || (hitRec.getType() == hitRec.SNAP_TYPE_STAGE) || hitRec.isSomeGridTypeSnap(); | 536 | var alignBounds = !hitRec || (hitRec.getType() == hitRec.SNAP_TYPE_STAGE) || hitRec.isSomeGridTypeSnap(); |
537 | if (alignBounds) | 537 | if (alignBounds) |
@@ -776,7 +776,7 @@ exports.ModifierToolBase = Montage.create(DrawingTool, { | |||
776 | } | 776 | } |
777 | else | 777 | else |
778 | { | 778 | { |
779 | this.target = this.application.ninja.currentDocument.documentRoot; | 779 | this.target = this.application.ninja.currentDocument.model.documentRoot; |
780 | } | 780 | } |
781 | // this._updateTargets(); | 781 | // this._updateTargets(); |
782 | } | 782 | } |