From 7c681477094e16dd386201c364337dc068ec595a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 18 Jun 2021 11:21:13 +0200 Subject: 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. --- source/blender/io/alembic/intern/abc_customdata.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/io') 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; } -- cgit v1.2.3