Alembic: fix parenting issues when an object has multiple curves/points
subobjects.
This commit is contained in:
@@ -599,10 +599,6 @@ struct ImportJobData {
|
|||||||
|
|
||||||
ABC_INLINE bool is_mesh_and_strands(const IObject &object)
|
ABC_INLINE bool is_mesh_and_strands(const IObject &object)
|
||||||
{
|
{
|
||||||
if (object.getNumChildren() != 2) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool has_mesh = false;
|
bool has_mesh = false;
|
||||||
bool has_curve = false;
|
bool has_curve = false;
|
||||||
|
|
||||||
@@ -624,6 +620,9 @@ ABC_INLINE bool is_mesh_and_strands(const IObject &object)
|
|||||||
else if (ICurves::matches(md)) {
|
else if (ICurves::matches(md)) {
|
||||||
has_curve = true;
|
has_curve = true;
|
||||||
}
|
}
|
||||||
|
else if (IPoints::matches(md)) {
|
||||||
|
has_curve = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return has_mesh && has_curve;
|
return has_mesh && has_curve;
|
||||||
|
Reference in New Issue
Block a user