Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
missed qvector 3D
Browse files Browse the repository at this point in the history
  • Loading branch information
ggoneiESS committed Oct 16, 2023
1 parent 7f9ceee commit 39b9863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nexus_constructor/model/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:
Expand Down

0 comments on commit 39b9863

Please sign in to comment.