fixed bug when rasterizing variant links

This commit is contained in:
Youen 2022-12-28 10:26:48 +01:00
parent f9d58c66fc
commit 95034aa0bc

View File

@ -102,6 +102,9 @@ class RasterView:
if part.TypeId == 'App::Link': if part.TypeId == 'App::Link':
link.LinkedObject = part.LinkedObject link.LinkedObject = part.LinkedObject
link.Placement = part.Placement link.Placement = part.Placement
elif part.TypeId == 'Part::FeaturePython' and hasattr(part, 'LinkedObject'): # variant link
link.LinkedObject = part.LinkedObject
link.Placement = part.Placement
else: else:
link.LinkedObject = part link.LinkedObject = part