From 7c1be639f7873bd37494b6e736bf57598e7052b3 Mon Sep 17 00:00:00 2001 From: "Egli Adrian (IT-SCI-API-PFI)" <adrian.egli@sbb.ch> Date: Mon, 17 Jun 2019 15:17:01 +0200 Subject: [PATCH] editor bug fix --- flatland/utils/editor.py | 3 +++ notebooks/Scene_Editor.ipynb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/flatland/utils/editor.py b/flatland/utils/editor.py index 81565d6..6973c94 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 551aedd..728debb 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 }, -- GitLab