diff options
author | jjesswan <jessica_wan@brown.edu> | 2024-05-10 01:52:52 -0400 |
---|---|---|
committer | jjesswan <jessica_wan@brown.edu> | 2024-05-10 01:52:52 -0400 |
commit | c93b28613dd9c33de29152f987aeec3ca8340f8d (patch) | |
tree | b3f7e39cdc0de827bac057f1a9e08f5f74f5bf84 /src/graphics/shape.cpp | |
parent | d2f792c6fee2a6e78dcf2fff77f43ef036c58877 (diff) | |
parent | 6aab43ffd2c29a66f71b0684974abd5b2685341c (diff) |
merge with new foam fixes
Diffstat (limited to 'src/graphics/shape.cpp')
-rw-r--r-- | src/graphics/shape.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics/shape.cpp b/src/graphics/shape.cpp index 1baa233..7073a7f 100644 --- a/src/graphics/shape.cpp +++ b/src/graphics/shape.cpp @@ -336,7 +336,7 @@ void Shape::updateMesh(const std::vector<Eigen::Vector3i> &faces, Vector3f n = getNormal(face); for (auto& v: {face[0], face[1], face[2]}) { - normals.push_back(Eigen::Vector3f(1,1,1)); + normals.push_back(n); verts.push_back(vertices[v]); if (m_anchors.find(v) == m_anchors.end()) { |