From 95034aa0bc534685b247e379895ee574f2bb05d0 Mon Sep 17 00:00:00 2001 From: Youen Date: Wed, 28 Dec 2022 10:26:48 +0100 Subject: [PATCH] fixed bug when rasterizing variant links --- ahb_raster_view.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ahb_raster_view.py b/ahb_raster_view.py index 0ac8789..929ba7b 100644 --- a/ahb_raster_view.py +++ b/ahb_raster_view.py @@ -102,6 +102,9 @@ class RasterView: if part.TypeId == 'App::Link': link.LinkedObject = part.LinkedObject link.Placement = part.Placement + elif part.TypeId == 'Part::FeaturePython' and hasattr(part, 'LinkedObject'): # variant link + link.LinkedObject = part.LinkedObject + link.Placement = part.Placement else: link.LinkedObject = part