USD export: incorrect blend shape base mesh.

Fixed error acquiring un-modified Blender mesh
when creating USD blendshape base meshes.
This commit is contained in:
Michael Kowalski 2023-01-09 11:32:24 -05:00
parent 56a97ba816
commit 1f9e90bb1c
1 changed files with 2 additions and 2 deletions

View File

@ -355,9 +355,9 @@ Mesh *USDBlendShapeMeshWriter::get_export_mesh(Object *object_eval, bool &r_need
return nullptr;
}
Mesh *src_mesh = static_cast<Mesh *>(object_eval->data);
Mesh *src_mesh = BKE_object_get_pre_modified_mesh(object_eval);
if (!src_mesh->key || !src_mesh->key->block.first) {
if (!src_mesh || !src_mesh->key || !src_mesh->key->block.first) {
return nullptr;
}