summaryrefslogtreecommitdiff
path: root/scene/resources/surface_tool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/surface_tool.cpp')
-rw-r--r--scene/resources/surface_tool.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/scene/resources/surface_tool.cpp b/scene/resources/surface_tool.cpp
index 3932917ebe..9320676016 100644
--- a/scene/resources/surface_tool.cpp
+++ b/scene/resources/surface_tool.cpp
@@ -33,36 +33,36 @@
#define _VERTEX_SNAP 0.0001
#define EQ_VERTEX_DIST 0.00001
-bool SurfaceTool::Vertex::operator==(const Vertex &p_b) const {
+bool SurfaceTool::Vertex::operator==(const Vertex &p_vertex) const {
- if (vertex != p_b.vertex)
+ if (vertex != p_vertex.vertex)
return false;
- if (uv != p_b.uv)
+ if (uv != p_vertex.uv)
return false;
- if (uv2 != p_b.uv2)
+ if (uv2 != p_vertex.uv2)
return false;
- if (normal != p_b.normal)
+ if (normal != p_vertex.normal)
return false;
- if (binormal != p_b.binormal)
+ if (binormal != p_vertex.binormal)
return false;
- if (color != p_b.color)
+ if (color != p_vertex.color)
return false;
- if (bones.size() != p_b.bones.size())
+ if (bones.size() != p_vertex.bones.size())
return false;
for (int i = 0; i < bones.size(); i++) {
- if (bones[i] != p_b.bones[i])
+ if (bones[i] != p_vertex.bones[i])
return false;
}
for (int i = 0; i < weights.size(); i++) {
- if (weights[i] != p_b.weights[i])
+ if (weights[i] != p_vertex.weights[i])
return false;
}
@@ -865,13 +865,13 @@ void SurfaceTool::_bind_methods() {
ClassDB::bind_method(D_METHOD("add_to_format", "flags"), &SurfaceTool::add_to_format);
- ClassDB::bind_method(D_METHOD("set_material", "material:Material"), &SurfaceTool::set_material);
+ ClassDB::bind_method(D_METHOD("set_material", "material"), &SurfaceTool::set_material);
ClassDB::bind_method(D_METHOD("clear"), &SurfaceTool::clear);
- ClassDB::bind_method(D_METHOD("create_from", "existing:Mesh", "surface"), &SurfaceTool::create_from);
- ClassDB::bind_method(D_METHOD("append_from", "existing:Mesh", "surface", "transform"), &SurfaceTool::append_from);
- ClassDB::bind_method(D_METHOD("commit:Mesh", "existing:Mesh"), &SurfaceTool::commit, DEFVAL(Variant()));
+ ClassDB::bind_method(D_METHOD("create_from", "existing", "surface"), &SurfaceTool::create_from);
+ ClassDB::bind_method(D_METHOD("append_from", "existing", "surface", "transform"), &SurfaceTool::append_from);
+ ClassDB::bind_method(D_METHOD("commit", "existing"), &SurfaceTool::commit, DEFVAL(Variant()));
}
SurfaceTool::SurfaceTool() {