mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix small issue with increment snap
This commit is contained in:
@@ -353,7 +353,8 @@ class PolylineOperator:
|
||||
should_round = True
|
||||
|
||||
tool.Polyline.calculate_distance_and_angle(context, self.input_ui, self.tool_state, should_round=should_round)
|
||||
tool.Polyline.calculate_x_y_and_z(context, self.input_ui, self.tool_state)
|
||||
if should_round:
|
||||
tool.Polyline.calculate_x_y_and_z(context, self.input_ui, self.tool_state)
|
||||
tool.Blender.update_viewport()
|
||||
return {"RUNNING_MODAL"}
|
||||
|
||||
|
||||
@@ -577,6 +577,7 @@ class Polyline(bonsai.core.tool.Polyline):
|
||||
polyline_point.dim = d
|
||||
polyline_point.angle = a
|
||||
polyline_point.position = Vector((x, y, z))
|
||||
print(polyline_point.x, polyline_point.y, polyline_point.z)
|
||||
|
||||
# Add total length
|
||||
total_length = 0
|
||||
@@ -588,6 +589,7 @@ class Polyline(bonsai.core.tool.Polyline):
|
||||
total_length = tool.Polyline.format_input_ui_units(total_length)
|
||||
polyline_data.total_length = total_length
|
||||
|
||||
|
||||
@classmethod
|
||||
def close_polyline(cls):
|
||||
polyline_data = bpy.context.scene.BIMPolylineProperties.insertion_polyline
|
||||
|
||||
Reference in New Issue
Block a user