From 0caad4e6d9fdbcc4a7f2d5692e6a718dc07d83f4 Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Sun, 28 Aug 2016 15:33:37 -0700 Subject: [PATCH] Not clear selection while history editing --- web/app/3d/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/app/3d/main.js b/web/app/3d/main.js index 59379008..41838950 100644 --- a/web/app/3d/main.js +++ b/web/app/3d/main.js @@ -53,7 +53,10 @@ TCAD.App = function() { } this.bus.subscribe("craft", function() { - app.viewer.selectionMgr.clear(); + var historyEditMode = app.craft.historyPointer != app.craft.history.length; + if (!historyEditMode) { + app.viewer.selectionMgr.clear(); + } app._refreshSketches(); }); window.addEventListener('storage', storage_handler, false);