doxygen: prevent GPL license block from being parsed as doxygen comment.
[blender.git] / source / blender / ikplugin / intern / ikplugin_api.c
index fe9d116..e26e315 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * $Id$
  * ***** BEGIN GPL LICENSE BLOCK *****
  *
  * ***** END GPL LICENSE BLOCK *****
  */
 
-#include "MEM_guardedalloc.h"
 
 #include "BIK_api.h"
 #include "BLI_blenlib.h"
 #include "BLI_math.h"
 
 #include "BKE_armature.h"
-#include "BKE_utildefines.h"
+
 #include "DNA_object_types.h"
 #include "DNA_action_types.h"
 #include "DNA_scene_types.h"
 
 #include "ikplugin_api.h"
 #include "iksolver_plugin.h"
-#include "itasc_plugin.h"
 
+#ifdef WITH_IK_ITASC
+#include "itasc_plugin.h"
+#endif
 
-static IKPlugin ikplugin_tab[BIK_SOLVER_COUNT] = {
+static IKPlugin ikplugin_tab[] = {
        /* Legacy IK solver */
        {
                iksolver_initialize_tree,
@@ -56,6 +57,7 @@ static IKPlugin ikplugin_tab[BIK_SOLVER_COUNT] = {
                NULL,
                NULL,
                NULL,
+#ifdef WITH_IK_ITASC
        },
        /* iTaSC IK solver */
        {
@@ -66,13 +68,13 @@ static IKPlugin ikplugin_tab[BIK_SOLVER_COUNT] = {
                itasc_clear_cache,
                itasc_update_param,
                itasc_test_constraint,
+#endif
        }
 };
 
-
 static IKPlugin *get_plugin(bPose *pose)
 {
-       if (!pose || pose->iksolver < 0 || pose->iksolver >= BIK_SOLVER_COUNT)
+       if (!pose || pose->iksolver < 0 || pose->iksolver >= (sizeof(ikplugin_tab) / sizeof(IKPlugin)))
                return NULL;
 
        return &ikplugin_tab[pose->iksolver];
@@ -136,3 +138,4 @@ void BIK_test_constraint(struct Object *ob, struct bConstraint *cons)
        if (plugin && plugin->test_constraint)
                plugin->test_constraint(ob, cons);
 }
+