Added missing NULL-check in BulletsoftBodyNode::attach_angular_joint.

This commit is contained in:
enn0x 2013-07-06 00:27:04 +00:00
parent 2843fcbc86
commit 64851b9557

View File

@ -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);
} }