diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-27 10:18:46 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-27 10:18:46 +0100 |
commit | 10c3b00bd778992b4290ef2f80fa9cab14ea8260 (patch) | |
tree | ac2c717b66a82d926fa948a36d3b6be89a0f6be7 /scene/resources/surface_tool.cpp | |
parent | 0499b57d9e13638d828345d2fce88a661d05d5c6 (diff) | |
parent | 2b2f957543897d376a56e699cdf8c6778279a215 (diff) | |
download | redot-engine-10c3b00bd778992b4290ef2f80fa9cab14ea8260.tar.gz |
Merge pull request #88890 from clayjohn/SurfaceTool-tangent-hash
Include tangent in SurfaceTool vertex compare operator
Diffstat (limited to 'scene/resources/surface_tool.cpp')
-rw-r--r-- | scene/resources/surface_tool.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/surface_tool.cpp b/scene/resources/surface_tool.cpp index f51d8dd0bf..06d53e4e2f 100644 --- a/scene/resources/surface_tool.cpp +++ b/scene/resources/surface_tool.cpp @@ -97,6 +97,10 @@ bool SurfaceTool::Vertex::operator==(const Vertex &p_vertex) const { return false; } + if (tangent != p_vertex.tangent) { + return false; + } + if (color != p_vertex.color) { return false; } |