"docs/source/vscode:/vscode.git/clone" did not exist on "cc26cd8139c672016b6a578ea8d02138b53eb193"
Commit 17bc043a authored by Krzysztof Chalupka's avatar Krzysztof Chalupka Committed by Facebook GitHub Bot
Browse files

Remove structured binding

Summary: Couldn't build p3d on devfair because C++17 is unsupported. Two structured bindings sneaked in.

Reviewed By: bottler

Differential Revision: D40280967

fbshipit-source-id: 9627f3f9f76247a6cefbeac067fdead67c6f4e14
parent f55d37f0
......@@ -508,7 +508,8 @@ inline bool IsCoplanarTriTri(
// Compute most distant points
auto argvs = ArgMaxVerts(tri1, tri2);
const auto [v1m, v2m] = argvs;
const auto v1m = std::get<0>(argvs);
const auto v2m = std::get<1>(argvs);
vec3<float> n12m = v1m - v2m;
n12m = n12m / std::fmaxf(norm(n12m), kEpsilon);
......@@ -542,7 +543,8 @@ inline bool IsCoplanarTriPlane(
// Compute most distant points
auto argvs = ArgMaxVerts(tri, plane);
const auto [v1m, v2m] = argvs;
const auto v1m = std::get<0>(argvs);
const auto v2m = std::get<1>(argvs);
vec3<float> n12m = v1m - v2m;
n12m = n12m / std::fmaxf(norm(n12m), kEpsilon);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment