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: