Skip to content

Commit e012d6b

Browse files
committed
Part: Make fromPlacement function return general trasformation
1 parent aed799c commit e012d6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Mod/Part/App/Tools.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ TopLoc_Location Part::Tools::fromPlacement(const Base::Placement& plm)
741741
Base::Vector3d t = plm.getPosition();
742742

743743
gp_Trsf trf;
744-
trf.SetTranslation(gp_Vec(t.x, t.y, t.z));
745-
trf.SetRotation(gp_Quaternion(q1, q2, q3, q4));
744+
trf.SetTranslationPart(gp_Vec(t.x, t.y, t.z));
745+
trf.SetRotationPart(gp_Quaternion(q1, q2, q3, q4));
746746
return {trf};
747747
}

0 commit comments

Comments
 (0)