Skip to content

Commit

Permalink
Fix 'Sphere has no user-defined constexpr ctor' Ubuntu20 error
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkewley committed Jul 13, 2021
1 parent cf5d091 commit 6a2f746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/3d/3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ namespace {
[[nodiscard]] constexpr Sphere sphere_compute_bounding_sphere_from_verts(TVert const* vs, size_t n) noexcept {
AABB aabb = aabb_compute_from_verts(vs, n);

Sphere rv;
Sphere rv{};
rv.origin = (aabb.p1 + aabb.p2) / 2.0f;
rv.radius = 0.0f;

Expand Down

0 comments on commit 6a2f746

Please sign in to comment.