From f86b6987655aea7d471bbe2e5324efd7a6b615a7 Mon Sep 17 00:00:00 2001 From: Saracen Date: Fri, 22 Jul 2016 04:51:07 +0100 Subject: [PATCH] SurfaceTool add_index method exposed to scripts. --- scene/resources/surface_tool.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/resources/surface_tool.cpp b/scene/resources/surface_tool.cpp index ae3f4c94a1f..e1769d099b9 100644 --- a/scene/resources/surface_tool.cpp +++ b/scene/resources/surface_tool.cpp @@ -860,6 +860,7 @@ void SurfaceTool::_bind_methods() { ObjectTypeDB::bind_method(_MD("deindex"),&SurfaceTool::deindex); ///ObjectTypeDB::bind_method(_MD("generate_flat_normals"),&SurfaceTool::generate_flat_normals); ObjectTypeDB::bind_method(_MD("generate_normals"),&SurfaceTool::generate_normals); + ObjectTypeDB::bind_method(_MD("add_index", "index"), &SurfaceTool::add_index); ObjectTypeDB::bind_method(_MD("commit:Mesh","existing:Mesh"),&SurfaceTool::commit,DEFVAL(Variant())); ObjectTypeDB::bind_method(_MD("clear"),&SurfaceTool::clear);