[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52175] trunk/blender/source/blender/ ikplugin/intern/ikplugin_api.c: Last fix to get_plugin in ikplugin_api. c was off by one in the wrong direction.

Jason Wilkins Jason.A.Wilkins at gmail.com
Tue Nov 13 12:31:58 CET 2012


Revision: 52175
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52175
Author:   jwilkins
Date:     2012-11-13 11:31:54 +0000 (Tue, 13 Nov 2012)
Log Message:
-----------
Last fix to get_plugin in ikplugin_api.c was off by one in the wrong direction.

Modified Paths:
--------------
    trunk/blender/source/blender/ikplugin/intern/ikplugin_api.c

Modified: trunk/blender/source/blender/ikplugin/intern/ikplugin_api.c
===================================================================
--- trunk/blender/source/blender/ikplugin/intern/ikplugin_api.c	2012-11-13 11:00:46 UTC (rev 52174)
+++ trunk/blender/source/blender/ikplugin/intern/ikplugin_api.c	2012-11-13 11:31:54 UTC (rev 52175)
@@ -79,14 +79,14 @@
 		itasc_update_param,
 		itasc_test_constraint,
 	},
-	#endif
+#endif
 
 	{ NULL }
 };
 
 static IKPlugin *get_plugin(bPose *pose)
 {
-	if (!pose || pose->iksolver < 0 || pose->iksolver > (sizeof(ikplugin_tab) / sizeof(IKPlugin)))
+	if (!pose || pose->iksolver < 0 || pose->iksolver > (sizeof(ikplugin_tab)/sizeof(IKPlugin) - 2))
 		return NULL;
 
 	return &ikplugin_tab[pose->iksolver];




More information about the Bf-blender-cvs mailing list