From 2b2f957543897d376a56e699cdf8c6778279a215 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Mon, 26 Feb 2024 17:52:24 -0800 Subject: [PATCH] Include tangent in SurfaceTool vertex compare operator --- scene/resources/surface_tool.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene/resources/surface_tool.cpp b/scene/resources/surface_tool.cpp index 653f234d3dc..c6ef760446e 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; }