Ignore format flags when validating the blend shape mask

This commit is contained in:
Lyuma 2021-10-12 12:21:03 -07:00
parent fa3164e90c
commit 0ce98d3af1

View file

@ -934,7 +934,8 @@ Error RenderingServer::mesh_create_surface_data_from_arrays(SurfaceData *r_surfa
}
}
ERR_FAIL_COND_V_MSG((bsformat & RS::ARRAY_FORMAT_BLEND_SHAPE_MASK) != (format & RS::ARRAY_FORMAT_BLEND_SHAPE_MASK), ERR_INVALID_PARAMETER, "Blend shape format must match the main array format for Vertex, Normal and Tangent arrays.");
const uint32_t blend_format_mask = RS::ARRAY_FORMAT_VERTEX | RS::ARRAY_FORMAT_NORMAL | RS::ARRAY_FORMAT_TANGENT;
ERR_FAIL_COND_V_MSG((bsformat & blend_format_mask) != (format & blend_format_mask), ERR_INVALID_PARAMETER, "Blend shape format must match the main array format for Vertex, Normal and Tangent arrays.");
}
}