Skip to content

Commit

Permalink
Fix surfaces with no colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyuu17 committed Jun 17, 2024
1 parent f67581a commit 4498756
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SWBF2/Level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ namespace SWBF2
arrays[godot::ArrayMesh::ARRAY_VERTEX] = vertices;
arrays[godot::ArrayMesh::ARRAY_NORMAL] = normals;
//arrays[godot::ArrayMesh::ARRAY_TANGENT] = tangents;
arrays[godot::ArrayMesh::ARRAY_COLOR] = colors;
if (colors.size() > 0)
arrays[godot::ArrayMesh::ARRAY_COLOR] = colors;
arrays[godot::ArrayMesh::ARRAY_TEX_UV] = uvs;
arrays[godot::ArrayMesh::ARRAY_INDEX] = indices;

Expand Down

0 comments on commit 4498756

Please sign in to comment.