Skip to content

Commit

Permalink
IndexedTriangle's user data parameter should have a default value for…
Browse files Browse the repository at this point in the history
… the API to stay backwards compatible
  • Loading branch information
jrouwe committed Aug 26, 2024
1 parent 00160d7 commit 8feb90c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jolt/Geometry/IndexedTriangle.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class IndexedTriangle : public IndexedTriangleNoMaterial
using IndexedTriangleNoMaterial::IndexedTriangleNoMaterial;

/// Constructor
constexpr IndexedTriangle(uint32 inI1, uint32 inI2, uint32 inI3, uint32 inMaterialIndex, uint inUserData) : IndexedTriangleNoMaterial(inI1, inI2, inI3), mMaterialIndex(inMaterialIndex), mUserData(inUserData) { }
constexpr IndexedTriangle(uint32 inI1, uint32 inI2, uint32 inI3, uint32 inMaterialIndex, uint inUserData = 0) : IndexedTriangleNoMaterial(inI1, inI2, inI3), mMaterialIndex(inMaterialIndex), mUserData(inUserData) { }

/// Check if two triangles are identical
bool operator == (const IndexedTriangle &inRHS) const
Expand Down

0 comments on commit 8feb90c

Please sign in to comment.