[ODE] minor bug

Daniel Duhprey duhprey at yahoo.com
Tue Mar 18 16:37:01 2003


If a user geometry class is created before any call to dxGeom's constructor 
then when initColliders inside dxGeom gets called it erases over the user 
defined class.  The following patch does an initColliders before creating the 
class.  (This is with the new collision system)

--- ode/src/collision_kernel.cpp        9 Dec 2002 01:27:29 -0000       1.7
+++ ode/src/collision_kernel.cpp        18 Mar 2003 23:34:48 -0000
@@ -518,6 +518,7 @@
   }
   user_classes[num_user_classes] = *c;
   int class_number = num_user_classes + dFirstUserClass;
+  initColliders();
   setAllColliders (class_number,&dCollideUserGeomWithGeom);

   num_user_classes++;


-- 
------------
email: duhprey@tosos.com www: http://paradox.tosos.com/~duhprey icq: 129354442
She's got a whole brood of kids, like Sendmail, and Postfix, and Apache, and
Perl. And some of 'em die young, and some are mentally retarded.  Sterling
The European finds intercourse with Americans easy and agreeable.  Einstein
Not a shred of evidence exists in favor of the idea that life is serious.  Gill