mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
guarantee that ragdoll is clear before initialized
This commit is contained in:
parent
9eba4b01f0
commit
f33728b615
1 changed files with 1 additions and 2 deletions
|
@ -505,8 +505,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