Skip to content

Commit

Permalink
Merge pull request godotengine#36961 from JFonS/fix_mesh_selection
Browse files Browse the repository at this point in the history
Return correct mesh format for PrimitiveMesh
  • Loading branch information
akien-mga authored Mar 12, 2020
2 parents 676fcca + 9f2f7ee commit 3c376a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/resources/primitive_meshes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Array PrimitiveMesh::surface_get_blend_shape_arrays(int p_surface) const {
uint32_t PrimitiveMesh::surface_get_format(int p_idx) const {
ERR_FAIL_INDEX_V(p_idx, 1, 0);

return VS::ARRAY_COMPRESS_DEFAULT;
return VS::ARRAY_FORMAT_VERTEX | VS::ARRAY_FORMAT_NORMAL | VS::ARRAY_FORMAT_TANGENT | VS::ARRAY_FORMAT_TEX_UV | VS::ARRAY_FORMAT_INDEX | VS::ARRAY_COMPRESS_DEFAULT;
}

Mesh::PrimitiveType PrimitiveMesh::surface_get_primitive_type(int p_idx) const {
Expand Down

0 comments on commit 3c376a8

Please sign in to comment.