diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-06-18 12:21:13 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-06-18 12:21:13 +0300 |
commit | 7c681477094e16dd386201c364337dc068ec595a (patch) | |
tree | eef5604683f3571547f2c1fe1ed53bb4e8ae208d /source/blender/io | |
parent | 060d668ae6e6a1d0f89cea65b9d7c152c761350a (diff) |
Fix T88605: Alembic import crashes when missing `arbGeomParams`
Add check for the `arbGeomParams` property being valid, before attempting
to access a sub-property from it.
Diffstat (limited to 'source/blender/io')
-rw-r--r-- | source/blender/io/alembic/intern/abc_customdata.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/io/alembic/intern/abc_customdata.cc b/source/blender/io/alembic/intern/abc_customdata.cc index eccb529e4d0..e3ed897458d 100644 --- a/source/blender/io/alembic/intern/abc_customdata.cc +++ b/source/blender/io/alembic/intern/abc_customdata.cc @@ -497,7 +497,7 @@ void read_generated_coordinates(const ICompoundProperty &prop, const CDStreamConfig &config, const Alembic::Abc::ISampleSelector &iss) { - if (prop.getPropertyHeader(propNameOriginalCoordinates) == nullptr) { + if (!prop.valid() || prop.getPropertyHeader(propNameOriginalCoordinates) == nullptr) { /* The ORCO property isn't there, so don't bother trying to process it. */ return; } |