summaryrefslogtreecommitdiff
path: root/src/graphics/shape.cpp
diff options
context:
space:
mode:
authorjjesswan <jessica_wan@brown.edu>2024-05-10 01:52:52 -0400
committerjjesswan <jessica_wan@brown.edu>2024-05-10 01:52:52 -0400
commitc93b28613dd9c33de29152f987aeec3ca8340f8d (patch)
treeb3f7e39cdc0de827bac057f1a9e08f5f74f5bf84 /src/graphics/shape.cpp
parentd2f792c6fee2a6e78dcf2fff77f43ef036c58877 (diff)
parent6aab43ffd2c29a66f71b0684974abd5b2685341c (diff)
merge with new foam fixes
Diffstat (limited to 'src/graphics/shape.cpp')
-rw-r--r--src/graphics/shape.cpp2
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()) {