mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Small fix on previos commit
This commit is contained in:
committed by
Bruno Perdigão
parent
2008081d9a
commit
aaa3d5c443
@@ -471,7 +471,7 @@ class DrawPolylineWall(bpy.types.Operator):
|
|||||||
|
|
||||||
if self.input_type in self.input_options:
|
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 (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 = []
|
self.number_input = []
|
||||||
|
|
||||||
if event.type == "BACK_SPACE":
|
if event.type == "BACK_SPACE":
|
||||||
|
|||||||
@@ -2434,7 +2434,7 @@ class MeasureTool(bpy.types.Operator):
|
|||||||
|
|
||||||
if self.input_type in self.input_options:
|
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 (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 = []
|
self.number_input = []
|
||||||
|
|
||||||
if event.type == "BACK_SPACE":
|
if event.type == "BACK_SPACE":
|
||||||
|
|||||||
Reference in New Issue
Block a user