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: