Assembly: Make RackPinion and Screw easier to setup.

This commit is contained in:
PaddleStroke
2024-04-17 12:45:18 +02:00
committed by Yorik van Havre
parent b44505db39
commit 98c518835c
4 changed files with 180 additions and 24 deletions

View File

@@ -949,10 +949,8 @@ def findPlacement(obj, part, elt, vtx, ignoreVertex=False):
plc.Base = (vertex.X, vertex.Y, vertex.Z)
# Then we find the Rotation
if surface.TypeId == "Part::GeomPlane":
if hasattr(surface, "Rotation") and surface.Rotation is not None:
plc.Rotation = App.Rotation(surface.Rotation)
else:
plc.Rotation = surface.Rotation
# Now plc is the placement relative to the origin determined by the object placement.
# But it does not take into account Part placements. So if the solid is in a part and