Skip to content

Commit

Permalink
fix failing c++ test due to implicit construction of scale from float
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Jul 16, 2024
1 parent ccbbb9d commit 31293b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rerun_cpp/tests/archetypes/transform3d.cpp
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ SCENARIO(
GIVEN("Transform3D from scale and from_parent==" << from_parent) {
auto utility = Transform3D::from_scale({3.0f, 2.0f, 1.0f}).with_from_parent(from_parent);

manual.scale = {3.0f, 2.0f, 1.0f};
manual.scale = rerun::components::Scale3D(3.0f, 2.0f, 1.0f);
manual.transform.repr =
rrd::Transform3D::translation_rotation_scale(manual_translation_rotation_scale);

@@ -103,7 +103,7 @@ SCENARIO(
.with_from_parent(from_parent);

manual.translation = rerun::components::Translation3D(1.0f, 2.0f, 3.0f);
manual.scale = {3.0f, 2.0f, 1.0f};
manual.scale = rerun::components::Scale3D(3.0f, 2.0f, 1.0f);
manual.transform.repr =
rrd::Transform3D::translation_rotation_scale(manual_translation_rotation_scale);

@@ -120,7 +120,7 @@ SCENARIO(

manual.translation = rerun::components::Translation3D(1.0f, 2.0f, 3.0f);
manual_translation_rotation_scale.rotation = rotation;
manual.scale = {3.0f, 2.0f, 1.0f};
manual.scale = rerun::components::Scale3D(3.0f, 2.0f, 1.0f);
manual.transform.repr =
rrd::Transform3D::translation_rotation_scale(manual_translation_rotation_scale);

@@ -132,7 +132,7 @@ SCENARIO(
.with_from_parent(from_parent);

manual_translation_rotation_scale.rotation = rotation;
manual.scale = {3.0f, 2.0f, 1.0f};
manual.scale = rerun::components::Scale3D(3.0f, 2.0f, 1.0f);
manual.transform.repr =
rrd::Transform3D::translation_rotation_scale(manual_translation_rotation_scale);

0 comments on commit 31293b6

Please sign in to comment.