mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
small fix
This commit is contained in:
committed by
Bruno Perdigão
parent
c477173096
commit
04088af2b6
@@ -96,8 +96,6 @@ class Cad:
|
||||
|
||||
cos_a = max(-1, min(1, cos_a))
|
||||
|
||||
print(v1, v2, v3)
|
||||
print(cos_a)
|
||||
a = math.acos(cos_a)
|
||||
if degrees:
|
||||
return math.degrees(a)
|
||||
|
||||
@@ -128,17 +128,14 @@ class Snap(bonsai.core.tool.Snap):
|
||||
else:
|
||||
z = snap_vertex.z
|
||||
|
||||
if not x and not y:
|
||||
if x is None and y is None:
|
||||
x = snap_vertex.x
|
||||
y = snap_vertex.y
|
||||
|
||||
# Avoids creating two points at the same location
|
||||
polyline_data = bpy.context.scene.BIMModelProperties.polyline_point
|
||||
print(polyline_data, len(polyline_data))
|
||||
if polyline_data:
|
||||
last_point = polyline_data[len(polyline_data) - 1]
|
||||
print(last_point)
|
||||
print(last_point.x, last_point.y, last_point.z)
|
||||
if (x, y, z) == (last_point.x, last_point.y, last_point.z):
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user