use int's for kdopbvh start/stop axis since there were loops comparing with other...
authorCampbell Barton <ideasman42@gmail.com>
Wed, 24 Oct 2012 05:08:33 +0000 (05:08 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 24 Oct 2012 05:08:33 +0000 (05:08 +0000)
source/blender/blenlib/intern/BLI_kdopbvh.c

index a44b694bdf461fa6f91c8ce53cb671b6604ebf31..bdaf59c88d8afe29a064937a0c4c820b3e3d6c7f 100644 (file)
@@ -61,9 +61,9 @@ struct BVHTree {
        float epsilon;          /* epslion is used for inflation of the k-dop      */
        int totleaf;            /* leafs */
        int totbranch;
+       int start_axis, stop_axis;  /* KDOP_AXES array indices according to axis */
        char tree_type;         /* type of tree (4 => quadtree) */
        char axis;              /* kdop type (6 => OBB, 7 => AABB, ...) */
-       char start_axis, stop_axis;  /* KDOP_AXES array indices according to axis */
 };
 
 typedef struct BVHOverlapData {