forked from bartvdbraak/blender
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:
parent
e20a33b89d
commit
ad27e97ee7
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user