Explorar el Código

Merge pull request #88890 from clayjohn/SurfaceTool-tangent-hash

Include tangent in SurfaceTool vertex compare operator
Rémi Verschelde hace 1 año
padre
commit
10c3b00bd7
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      scene/resources/surface_tool.cpp

+ 4 - 0
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;
 	}