mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +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:
|
else:
|
||||||
self.number_input = self.number_input[:-1]
|
self.number_input = self.number_input[:-1]
|
||||||
self.number_output = "".join(self.number_input)
|
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
|
self.input_panel[self.input_type] = self.number_output
|
||||||
PolylineDecorator.set_input_panel(self.input_panel, self.input_type)
|
PolylineDecorator.set_input_panel(self.input_panel, self.input_type)
|
||||||
tool.Blender.update_viewport()
|
tool.Blender.update_viewport()
|
||||||
|
|||||||
Reference in New Issue
Block a user