From 0b2d856b53a6b39d0d5b7564a8cea6421b8d18aa Mon Sep 17 00:00:00 2001 From: Joaquin Matres <4514346+joamatab@users.noreply.github.com> Date: Wed, 1 Jan 2025 11:33:04 +0800 Subject: [PATCH] fix flatten --- gplugins/common/utils/get_component_with_local_layers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gplugins/common/utils/get_component_with_local_layers.py b/gplugins/common/utils/get_component_with_local_layers.py index 71ea8c24..9dd7b509 100644 --- a/gplugins/common/utils/get_component_with_local_layers.py +++ b/gplugins/common/utils/get_component_with_local_layers.py @@ -41,7 +41,8 @@ def get_component_with_local_layers( precision: of the boolean operations. """ # Initialize returned component and layerstack - local_component = component.flatten() + local_component = component.copy() + local_component.flatten() local_layer_stack = layer_stack.model_copy() for mapping in mappings: