From 6b6fa1ec7d39057ce937f090b2965c09f1930070 Mon Sep 17 00:00:00 2001 From: hwc487 Date: Wed, 21 Mar 2012 04:03:38 -0700 Subject: Clear RDGE when an element is deleted and before registering the context. --- js/controllers/selection-controller.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'js/controllers') diff --git a/js/controllers/selection-controller.js b/js/controllers/selection-controller.js index 154fb7f8..f29b39e2 100755 --- a/js/controllers/selection-controller.js +++ b/js/controllers/selection-controller.js @@ -111,6 +111,15 @@ exports.SelectionController = Montage.create(Component, { if(!this._isDocument) { if(this.findSelectedElement(event.detail) !== -1) { this.executeSelectElement(); + var element = event.detail; + if (element) { + if (element.elementModel) { + if (element.elementModel.shapeModel) { + if (element.elementModel.shapeModel.GLWorld) + element.elementModel.shapeModel.GLWorld.clearTree(); + } + } + } } } } -- cgit v1.2.3