diff --git a/flatland/utils/editor.py b/flatland/utils/editor.py index 81565d62d3ab17e740a5e1b635a97fd97d01980f..6973c94ea8a5d950ef08d2a128c8767348a91f2e 100644 --- a/flatland/utils/editor.py +++ b/flatland/utils/editor.py @@ -238,10 +238,13 @@ class Controller(object): bAlt = event["altKey"] if bCtrl and not bShift and not bAlt: self.model.click_agent(rcCell) + self.lrcStroke = [] elif bShift and bCtrl: self.model.add_target(rcCell) + self.lrcStroke = [] elif bAlt and not bShift and not bCtrl: self.model.clearCell(rcCell) + self.lrcStroke = [] self.debug("click in cell", rcCell) self.model.debug_cell(rcCell) diff --git a/notebooks/Scene_Editor.ipynb b/notebooks/Scene_Editor.ipynb index 551aedda042214fb797dcba6d3b12db6ec9dab64..728debb3f468f5997548b90b5119b708fa8f3e70 100644 --- a/notebooks/Scene_Editor.ipynb +++ b/notebooks/Scene_Editor.ipynb @@ -100,7 +100,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "c96cefa474204cb1992da3eb286fb659", + "model_id": "04f9a225dac149dca9990b271ab3b459", "version_major": 2, "version_minor": 0 },