Fix T51586: Regression: Alembic containing animated curves / hair no longer working

Also fixed the same type of error when reading points.
This commit is contained in:
Sybren A. Stüvel 2017-05-24 10:24:25 +02:00
parent e20a33b89d
commit ad27e97ee7
Notes: blender-bot 2023-02-14 06:56:54 +01:00
Referenced by issue #51586, Regression: Alembic containing animated curves / hair no longer working
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ bool AbcCurveReader::accepts_object_type(const Alembic::AbcCoreAbstract::ObjectH
return false;
}
if (ob->type != OB_EMPTY) {
if (ob->type != OB_CURVE) {
*err_str = "Object type mismatch, Alembic object path points to Curves.";
return false;
}

View File

@ -160,7 +160,7 @@ bool AbcPointsReader::accepts_object_type(const Alembic::AbcCoreAbstract::Object
return false;
}
if (ob->type != OB_EMPTY) {
if (ob->type != OB_MESH) {
*err_str = "Object type mismatch, Alembic object path points to Points.";
return false;
}