mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-10 05:13:02 +02:00
Merge pull request #3096 from AndrewMeadows/bug-fix
fix for assert crash in SkeletonModel::initRagdollPoints()
This commit is contained in:
commit
bd56596b59
1 changed files with 1 additions and 3 deletions
|
@ -39,7 +39,6 @@ void SkeletonModel::setJointStates(QVector<JointState> states) {
|
|||
}
|
||||
|
||||
clearShapes();
|
||||
clearRagdollConstraintsAndPoints();
|
||||
if (_enableShapes) {
|
||||
buildShapes();
|
||||
}
|
||||
|
@ -505,8 +504,7 @@ void SkeletonModel::renderRagdoll() {
|
|||
|
||||
// virtual
|
||||
void SkeletonModel::initRagdollPoints() {
|
||||
assert(_ragdollPoints.size() == 0);
|
||||
assert(_ragdollConstraints.size() == 0);
|
||||
clearRagdollConstraintsAndPoints();
|
||||
|
||||
// one point for each joint
|
||||
int numJoints = _jointStates.size();
|
||||
|
|
Loading…
Reference in a new issue