mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
physx: fix compile error
This commit is contained in:
parent
be282627a8
commit
8a9d83b604
@ -242,7 +242,7 @@ set_limits(const PhysxJointLimitDesc &low, const PhysxJointLimitDesc &high) {
|
|||||||
PhysxMotorDesc PhysxRevoluteJoint::
|
PhysxMotorDesc PhysxRevoluteJoint::
|
||||||
get_motor() const {
|
get_motor() const {
|
||||||
|
|
||||||
nassertr(_error_type == ET_ok, nullptr);
|
nassertr(_error_type == ET_ok, PhysxMotorDesc(0));
|
||||||
|
|
||||||
PhysxMotorDesc value;
|
PhysxMotorDesc value;
|
||||||
_ptr->getMotor(value._desc);
|
_ptr->getMotor(value._desc);
|
||||||
@ -255,7 +255,7 @@ get_motor() const {
|
|||||||
PhysxSpringDesc PhysxRevoluteJoint::
|
PhysxSpringDesc PhysxRevoluteJoint::
|
||||||
get_spring() const {
|
get_spring() const {
|
||||||
|
|
||||||
nassertr(_error_type == ET_ok, nullptr);
|
nassertr(_error_type == ET_ok, PhysxSpringDesc(0));
|
||||||
|
|
||||||
PhysxSpringDesc value;
|
PhysxSpringDesc value;
|
||||||
_ptr->getSpring(value._desc);
|
_ptr->getSpring(value._desc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user