mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix polytool issue when backspacing the whole input.
This commit is contained in:
@@ -480,6 +480,8 @@ class DrawPolylineWall(bpy.types.Operator):
|
||||
else:
|
||||
self.number_input = self.number_input[:-1]
|
||||
self.number_output = "".join(self.number_input)
|
||||
if not self.number_input:
|
||||
self.number_output = "0"
|
||||
self.input_panel[self.input_type] = self.number_output
|
||||
PolylineDecorator.set_input_panel(self.input_panel, self.input_type)
|
||||
tool.Blender.update_viewport()
|
||||
|
||||
Reference in New Issue
Block a user