summaryrefslogtreecommitdiffstats
path: root/scene/resources/surface_tool.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-27 10:18:46 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-27 10:18:46 +0100
commit10c3b00bd778992b4290ef2f80fa9cab14ea8260 (patch)
treeac2c717b66a82d926fa948a36d3b6be89a0f6be7 /scene/resources/surface_tool.cpp
parent0499b57d9e13638d828345d2fce88a661d05d5c6 (diff)
parent2b2f957543897d376a56e699cdf8c6778279a215 (diff)
downloadredot-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.cpp4
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;
}