Browse Source

fixed a bug in PrismaticJoint::setMotorEnabled where it ignored the argument passed

Bill Meltsner 15 năm trước cách đây
mục cha
commit
dd85250180
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/modules/physics/box2d/PrismaticJoint.cpp

+ 1 - 1
src/modules/physics/box2d/PrismaticJoint.cpp

@@ -60,7 +60,7 @@ namespace box2d
 
 	void PrismaticJoint::setMotorEnabled(bool motor)
 	{
-		return joint->EnableMotor(true);
+		return joint->EnableMotor(motor);
 	}
 
 	bool PrismaticJoint::isMotorEnabled() const