diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-04 16:07:37 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-04 16:16:31 +0300 |
commit | c81eca3d986115ae8f3c542e9b00b89795233864 (patch) | |
tree | 78c10d967df0e3d8b84e2de74581a053cc80d44e /source/blender/alembic | |
parent | 3c6deb69f79afd3c3483b7a2eafb28a24a050712 (diff) |
Fix T63276: crash deleting object with alembic constraint.
Diffstat (limited to 'source/blender/alembic')
-rw-r--r-- | source/blender/alembic/intern/abc_object.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/alembic/intern/abc_object.cc b/source/blender/alembic/intern/abc_object.cc index 48aa65717dd..20a43a821ed 100644 --- a/source/blender/alembic/intern/abc_object.cc +++ b/source/blender/alembic/intern/abc_object.cc @@ -323,8 +323,13 @@ void AbcObjectReader::read_matrix(float r_mat[4][4], const float time, * all parent matrices in the Alembic file, we assume that the Blender * parent object is already updated for the current timekey, and use its * world matrix. */ - BLI_assert(m_object->parent); - mul_m4_m4m4(r_mat, m_object->parent->obmat, r_mat); + if (m_object->parent) { + mul_m4_m4m4(r_mat, m_object->parent->obmat, r_mat); + } + else { + /* This can happen if the user deleted the parent object. */ + unit_m4(r_mat); + } } else { /* Only apply scaling to root objects, parenting will propagate it. */ |