Skip to content

Commit 10cb802

Browse files
committed
Fix error due to renamed attr
1 parent c5f4937 commit 10cb802

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

declaracad/occ/impl/occ_shape.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,13 +385,13 @@ def get_transform(self) -> gp_Trsf:
385385
t.SetTranslation(gp_Vec(op.x, op.y, op.z))
386386
elif isinstance(op, Rotate):
387387
t.SetRotation(
388-
gp_Ax1(gp_Pnt(*op.point), gp_Dir(*op.direction)), op.angle
388+
gp_Ax1(gp_Pnt(*op.position), gp_Dir(*op.direction)), op.angle
389389
)
390390
elif isinstance(op, Mirror):
391391
Ax = gp_Ax2 if op.plane else gp_Ax1
392-
t.SetMirror(Ax(gp_Pnt(*op.point), gp_Dir(op.x, op.y, op.z)))
392+
t.SetMirror(Ax(gp_Pnt(*op.position), gp_Dir(op.x, op.y, op.z)))
393393
elif isinstance(op, Scale):
394-
t.SetScale(gp_Pnt(*op.point), op.s)
394+
t.SetScale(gp_Pnt(*op.position), op.s)
395395
result.Multiply(t)
396396
return result
397397

0 commit comments

Comments
 (0)