diff --git a/CHANGES.md b/CHANGES.md index c856f8fe..678a5867 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,7 @@ ### v0.24.0 - 2024-11-01 * **Breaking change:** Cesium for Omniverse now requires Kit 106.0 or above (Isaac Sim 4.0.0 or above). +* Fixed bug where smooth normals setting would crash. ### v0.23.0 - 2024-10-01 diff --git a/src/core/src/FabricVertexAttributeAccessors.cpp b/src/core/src/FabricVertexAttributeAccessors.cpp index 246f9e94..198c9bc4 100644 --- a/src/core/src/FabricVertexAttributeAccessors.cpp +++ b/src/core/src/FabricVertexAttributeAccessors.cpp @@ -163,8 +163,8 @@ NormalsAccessor NormalsAccessor::GenerateSmooth(const PositionsAccessor& positio } auto accessor = NormalsAccessor(); + accessor._size = normals.size(); accessor._computed = std::move(normals); - accessor._size = indices.size(); return accessor; }