diff options
author | Jose Antonio Marquez | 2012-03-22 16:26:02 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-03-22 16:26:02 -0700 |
commit | 748a5c55e15809add748a15a87cd730e3fcee4bf (patch) | |
tree | 688f3ee299b2985fa5617426a5789d86f518b877 /js/controllers | |
parent | 7fbda862c62f37d4c67e4d5a619b7e3cffc309ff (diff) | |
parent | b25195d010417417bb5b2e5362385078d68d9a84 (diff) | |
download | ninja-748a5c55e15809add748a15a87cd730e3fcee4bf.tar.gz |
Merge branch 'refs/heads/Ninja-Montage-Integration' into FileIO-Montage-Components
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/selection-controller.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/controllers/selection-controller.js b/js/controllers/selection-controller.js index 9b0e638a..53cca029 100755 --- a/js/controllers/selection-controller.js +++ b/js/controllers/selection-controller.js | |||
@@ -112,6 +112,15 @@ exports.SelectionController = Montage.create(Component, { | |||
112 | if(!this._isDocument) { | 112 | if(!this._isDocument) { |
113 | if(this.findSelectedElement(event.detail) !== -1) { | 113 | if(this.findSelectedElement(event.detail) !== -1) { |
114 | this.executeSelectElement(); | 114 | this.executeSelectElement(); |
115 | var element = event.detail; | ||
116 | if (element) { | ||
117 | if (element.elementModel) { | ||
118 | if (element.elementModel.shapeModel) { | ||
119 | if (element.elementModel.shapeModel.GLWorld) | ||
120 | element.elementModel.shapeModel.GLWorld.clearTree(); | ||
121 | } | ||
122 | } | ||
123 | } | ||
115 | } | 124 | } |
116 | } | 125 | } |
117 | } | 126 | } |