mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
Added missing NULL-check in BulletsoftBodyNode::attach_angular_joint.
This commit is contained in:
parent
2843fcbc86
commit
64851b9557
@ -1130,7 +1130,7 @@ append_angular_joint(BulletBodyNode *body, const LVector3 &axis, PN_stdfloat erp
|
|||||||
as.cfm = cfm;
|
as.cfm = cfm;
|
||||||
as.split = split;
|
as.split = split;
|
||||||
as.axis = LVecBase3_to_btVector3(axis);
|
as.axis = LVecBase3_to_btVector3(axis);
|
||||||
as.icontrol = control;
|
as.icontrol = control ? control : btSoftBody::AJoint::IControl::Default();
|
||||||
|
|
||||||
_soft->appendAngularJoint(as, ptr);
|
_soft->appendAngularJoint(as, ptr);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user