diff options
author | Valerio Virgillito | 2012-03-22 15:47:56 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-03-22 15:47:56 -0700 |
commit | fdeed8051c3af538d28ca3bc599121cea483c22c (patch) | |
tree | cd5db2db7a04fb1e3035132a840076480706e0e3 /js/controllers | |
parent | 5308a9404ef131ba6457eec840b017a3e436b9da (diff) | |
download | ninja-fdeed8051c3af538d28ca3bc599121cea483c22c.tar.gz |
Squashed commit of the following GL integration
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
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 | } |