Skip to content

Commit

Permalink
Fix grouping of contact constraints (#1624)
Browse files Browse the repository at this point in the history
  • Loading branch information
azeey authored Dec 18, 2021
1 parent df90cda commit 6f9feed
Show file tree
Hide file tree
Showing 4 changed files with 5,114 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dart/constraint/ContactConstraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -920,9 +920,9 @@ dynamics::SkeletonPtr ContactConstraint::getRootSkeleton() const
assert(isActive());

if (mBodyNodeA->isReactive())
return mBodyNodeA->getSkeleton()->mUnionRootSkeleton.lock();
return ConstraintBase::getRootSkeleton(mBodyNodeA->getSkeleton());
else
return mBodyNodeB->getSkeleton()->mUnionRootSkeleton.lock();
return ConstraintBase::getRootSkeleton(mBodyNodeB->getSkeleton());
}

//==============================================================================
Expand Down
Loading

0 comments on commit 6f9feed

Please sign in to comment.