1
1

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.
This commit is contained in:
2021-06-18 11:21:13 +02:00
parent 060d668ae6
commit 7c68147709

View File

@@ -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;
}