From 55a5631986c5d7dbb42e36a25d8c921e41f16ff6 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Sun, 9 Oct 2016 23:42:03 +0200 Subject: [PATCH] Bindings: Fix missing default value (cherry picked from commit 068b58b3ce3d86e4b5ebf3637fb21a70d786b00e) --- servers/visual_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/visual_server.cpp b/servers/visual_server.cpp index b5cd79a8b0f..9d76fb42db7 100644 --- a/servers/visual_server.cpp +++ b/servers/visual_server.cpp @@ -382,7 +382,7 @@ void VisualServer::_bind_methods() { ObjectTypeDB::bind_method(_MD("mesh_create"),&VisualServer::mesh_create); - ObjectTypeDB::bind_method(_MD("mesh_add_surface"),&VisualServer::mesh_add_surface, DEFVAL(NO_INDEX_ARRAY)); + ObjectTypeDB::bind_method(_MD("mesh_add_surface"),&VisualServer::mesh_add_surface, DEFVAL(Array()), DEFVAL(false)); ObjectTypeDB::bind_method(_MD("mesh_surface_set_material"),&VisualServer::mesh_surface_set_material,DEFVAL(false)); ObjectTypeDB::bind_method(_MD("mesh_surface_get_material"),&VisualServer::mesh_surface_get_material);