فهرست منبع

JPH_CONVEX_BUILDER_DEBUG compiles again

Jorrit Rouwe 3 سال پیش
والد
کامیت
76b059fec1
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      Jolt/Geometry/ConvexHullBuilder.cpp
  2. 2 2
      Jolt/Geometry/ConvexHullBuilder.h

+ 1 - 1
Jolt/Geometry/ConvexHullBuilder.cpp

@@ -1278,7 +1278,7 @@ void ConvexHullBuilder::DetermineMaxError(Face *&outFaceWithMaxError, float &out
 
 #ifdef JPH_CONVEX_BUILDER_DEBUG
 
-void ConvexHullBuilder::DrawState(bool inDrawConflictList)
+void ConvexHullBuilder::DrawState(bool inDrawConflictList) const
 {
 	// Draw origin
 	DebugRenderer::sInstance->DrawMarker(cDrawScale * mOffset, Color::sRed, 0.2f);

+ 2 - 2
Jolt/Geometry/ConvexHullBuilder.h

@@ -220,7 +220,7 @@ private:
 
 #ifdef JPH_CONVEX_BUILDER_DEBUG
 	/// Draw state of algorithm
-	void				DrawState(bool inDrawConflictList = false);
+	void				DrawState(bool inDrawConflictList = false) const;
 
 	/// Draw a face for debugging purposes
 	void				DrawWireFace(const Face *inFace, ColorArg inColor) const;
@@ -238,7 +238,7 @@ private:
 
 #ifdef JPH_CONVEX_BUILDER_DEBUG
 	int					mIteration;							///< Number of iterations we've had so far (for debug purposes)	
-	Vec3				mOffset;							///< Offset to use for state drawing
+	mutable Vec3		mOffset;							///< Offset to use for state drawing
 	Vec3				mDelta;								///< Delta offset between next states
 #endif
 };