Skip to content
This repository has been archived by the owner on Dec 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #57 from TeamWisp/feature_parent_child_itt
Browse files Browse the repository at this point in the history
added check for invallid itt
  • Loading branch information
MeineZ authored Apr 6, 2019
2 parents 46bf0c1 + ab74a97 commit 4a74482
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/plugin/parsers/model_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,10 @@ namespace wmr

// specialized find_if algorithm
auto it = std::find_if( model_parser->m_object_transform_vector.begin(), model_parser->m_object_transform_vector.end(), getTransformFindAlgorithm( transform ) );

if( it == model_parser->m_object_transform_vector.end() )
{
return;
}
MFnMesh fn_mesh( it->first );
MFnDagNode dagnode = fn_mesh.parent( 0, &status );
MObject object = dagnode.object();
Expand All @@ -343,7 +346,6 @@ namespace wmr
return; // find_if returns last element even if it is not a positive result
}


updateTransform( transform, it->second );

auto child_count = transform.childCount();
Expand Down

0 comments on commit 4a74482

Please sign in to comment.