From 39b98631809e1f7915b1835b5562f17156df7b62 Mon Sep 17 00:00:00 2001 From: George O'Neill Date: Mon, 16 Oct 2023 09:28:27 +0200 Subject: [PATCH] missed qvector 3D --- nexus_constructor/model/component.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nexus_constructor/model/component.py b/nexus_constructor/model/component.py index 5a3826067..77bb6f7ff 100644 --- a/nexus_constructor/model/component.py +++ b/nexus_constructor/model/component.py @@ -277,7 +277,7 @@ def _create_and_add_transform( depends_on: Transformation, values: Union[Dataset, Group, StreamModule], target_pos: int = -1, - offset_vector: QVector3D = QVector3D(), + offset_vector: Optional[QVector3D] = None, ) -> Transformation: if name is None: name = _generate_incremental_name(transformation_type, self.transforms) @@ -300,7 +300,7 @@ def _create_and_add_transform( transform.ui_value = angle_or_magnitude transform.units = units transform.vector = vector - transform.offset_vector = offset_vector + transform.offset_vector = offset_vector if offset_vector is not None else QVector3D(0., 0., 0.) transform.depends_on = depends_on transform.parent_component = self if target_pos: