Small fix on previos commit

This commit is contained in:
Bruno Perdigão
2024-09-06 14:59:59 -03:00
committed by Bruno Perdigão
parent 2008081d9a
commit aaa3d5c443
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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":
@@ -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":