ports/devel/ode-devel/files/patch-OPC_TreeCollider.h
Pav Lucistnik 57b23f591f - enable an "OPCODE" library that is required to support triangle mesh objects.
- changes the header include order so as not to pick up installed includes
  before local ones
- suppresses the unneeded use of values.h
- works around an inlining limitation in g++

PR:		ports/81610
Submitted by:	Jonathan Hanna <jhanna@shaw.ca>
Approved by:	David Yeske <dyeske@yahoo.com> (maintainer)
2005-05-31 07:39:54 +00:00

30 lines
813 B
C

--- OPCODE/OPC_TreeCollider.h.orig Mon May 23 20:11:48 2005
+++ OPCODE/OPC_TreeCollider.h Mon May 23 20:16:16 2005
@@ -28,6 +28,13 @@
//! even entering the recursive collision code.
struct OPCODE_API BVTCache : Pair
{
+ inline_ void ResetCountDown()
+ {
+#ifdef __MESHMERIZER_H__ // Collision hulls only supported within ICE !
+ CountDown = 50;
+#endif // __MESHMERIZER_H__
+ }
+
//! Constructor
inline_ BVTCache()
{
@@ -46,13 +53,6 @@
SepVector.pid = 0;
SepVector.qid = 0;
SepVector.SV = Point(1.0f, 0.0f, 0.0f);
-#endif // __MESHMERIZER_H__
- }
-
- inline_ void ResetCountDown()
- {
-#ifdef __MESHMERIZER_H__ // Collision hulls only supported within ICE !
- CountDown = 50;
#endif // __MESHMERIZER_H__
}