Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-06-18 12:21:13 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-06-18 12:21:13 +0300
commit7c681477094e16dd386201c364337dc068ec595a (patch)
treeeef5604683f3571547f2c1fe1ed53bb4e8ae208d /source/blender/io
parent060d668ae6e6a1d0f89cea65b9d7c152c761350a (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.cc2
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;
}