From aaa3d5c44343e217c1fe95c058a036da84c758b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Perdig=C3=A3o?= Date: Fri, 6 Sep 2024 14:59:59 -0300 Subject: [PATCH] Small fix on previos commit --- src/bonsai/bonsai/bim/module/model/wall.py | 2 +- src/bonsai/bonsai/bim/module/project/operator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bonsai/bonsai/bim/module/model/wall.py b/src/bonsai/bonsai/bim/module/model/wall.py index 8c1a61a5a0..a50573f20d 100644 --- a/src/bonsai/bonsai/bim/module/model/wall.py +++ b/src/bonsai/bonsai/bim/module/model/wall.py @@ -471,7 +471,7 @@ class DrawPolylineWall(bpy.types.Operator): if self.input_type in self.input_options: if (event.ascii in self.number_options) or (event.value == "RELEASE" and event.type == "BACK_SPACE"): - if not self.is_typing and event.ascii != "=": + if not self.is_typing and not (event.ascii == "=" or event.type == "BACK_SPACE"): self.number_input = [] if event.type == "BACK_SPACE": diff --git a/src/bonsai/bonsai/bim/module/project/operator.py b/src/bonsai/bonsai/bim/module/project/operator.py index 94d3527854..07a83d439b 100644 --- a/src/bonsai/bonsai/bim/module/project/operator.py +++ b/src/bonsai/bonsai/bim/module/project/operator.py @@ -2434,7 +2434,7 @@ class MeasureTool(bpy.types.Operator): if self.input_type in self.input_options: if (event.ascii in self.number_options) or (event.value == "RELEASE" and event.type == "BACK_SPACE"): - if not self.is_typing and event.ascii != "=": + if not self.is_typing and not (event.ascii == "=" or event.type == "BACK_SPACE"): self.number_input = [] if event.type == "BACK_SPACE":