diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-11-09 23:55:06 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-11-09 23:55:06 -0300 |
commit | cacf9ebb7fd8df8845daca9da2fe55456cc179aa (patch) | |
tree | 5881cb42ace5001916e9d1843f5a7acbc35332a6 /scene/resources/mesh_data_tool.cpp | |
parent | 6b2a27bbe5fa112365fc88b9b4678a61293bcb53 (diff) |
all light types and shadows are working, pending a lot of clean-up
Diffstat (limited to 'scene/resources/mesh_data_tool.cpp')
-rw-r--r-- | scene/resources/mesh_data_tool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/mesh_data_tool.cpp b/scene/resources/mesh_data_tool.cpp index fb0fc2a247..758d78e513 100644 --- a/scene/resources/mesh_data_tool.cpp +++ b/scene/resources/mesh_data_tool.cpp @@ -328,7 +328,7 @@ Error MeshDataTool::commit_to_surface(const Ref<Mesh>& p_mesh) { Ref<Mesh> ncmesh=p_mesh; int sc = ncmesh->get_surface_count(); - ncmesh->add_surface(Mesh::PRIMITIVE_TRIANGLES,arr); + ncmesh->add_surface_from_arrays(Mesh::PRIMITIVE_TRIANGLES,arr); ncmesh->surface_set_material(sc,material); return OK; |