mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix assertion failure
This commit is contained in:
parent
46f04f18b2
commit
35f3829d10
@ -651,7 +651,7 @@ void Character::
|
|||||||
r_clear_joint_characters(PartGroup *part) {
|
r_clear_joint_characters(PartGroup *part) {
|
||||||
if (part->is_of_type(CharacterJoint::get_class_type())) {
|
if (part->is_of_type(CharacterJoint::get_class_type())) {
|
||||||
CharacterJoint *joint = DCAST(CharacterJoint, part);
|
CharacterJoint *joint = DCAST(CharacterJoint, part);
|
||||||
nassertv(joint->get_character() == this);
|
nassertv(joint->get_character() == this || joint->get_character() == NULL);
|
||||||
joint->set_character(NULL);
|
joint->set_character(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user