Selaa lähdekoodia

Removed incorrect comment

Fixes #1258
Jorrit Rouwe 1 vuosi sitten
vanhempi
commit
f95ad217f2
2 muutettua tiedostoa jossa 2 lisäystä ja 4 poistoa
  1. 0 2
      Jolt/Physics/Constraints/ConstraintManager.h
  2. 2 2
      Jolt/Physics/PhysicsSystem.h

+ 0 - 2
Jolt/Physics/Constraints/ConstraintManager.h

@@ -32,11 +32,9 @@ public:
 #endif // JPH_ENABLE_ASSERTS
 
 	/// Add a new constraint. This is thread safe.
-	/// Note that the inConstraints array is allowed to have nullptrs, these will be ignored.
 	void					Add(Constraint **inConstraints, int inNumber);
 
 	/// Remove a constraint. This is thread safe.
-	/// Note that the inConstraints array is allowed to have nullptrs, these will be ignored.
 	void					Remove(Constraint **inConstraint, int inNumber);
 
 	/// Get a list of all constraints

+ 2 - 2
Jolt/Physics/PhysicsSystem.h

@@ -90,10 +90,10 @@ public:
 	/// Remove constraint from the world
 	void						RemoveConstraint(Constraint *inConstraint)					{ mConstraintManager.Remove(&inConstraint, 1); }
 
-	/// Batch add constraints. Note that the inConstraints array is allowed to have nullptrs, these will be ignored.
+	/// Batch add constraints.
 	void						AddConstraints(Constraint **inConstraints, int inNumber)	{ mConstraintManager.Add(inConstraints, inNumber); }
 
-	/// Batch remove constraints. Note that the inConstraints array is allowed to have nullptrs, these will be ignored.
+	/// Batch remove constraints.
 	void						RemoveConstraints(Constraint **inConstraints, int inNumber)	{ mConstraintManager.Remove(inConstraints, inNumber); }
 
 	/// Get a list of all constraints