diff options
author | Jason Wilkins <Jason.A.Wilkins@gmail.com> | 2012-11-13 15:31:54 +0400 |
---|---|---|
committer | Jason Wilkins <Jason.A.Wilkins@gmail.com> | 2012-11-13 15:31:54 +0400 |
commit | 9a5cc8235a628bd993a1c35db749cfa0ccc5b16f (patch) | |
tree | e8f15fb66ccef0250d0cd0902e8a10d129323c87 | |
parent | 590ed4feb1bfe2c5d0ada6f66e05123d689d192a (diff) |
Last fix to get_plugin in ikplugin_api.c was off by one in the wrong direction.
-rw-r--r-- | source/blender/ikplugin/intern/ikplugin_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/ikplugin/intern/ikplugin_api.c b/source/blender/ikplugin/intern/ikplugin_api.c index 48dd424603f..efe07b2c48c 100644 --- a/source/blender/ikplugin/intern/ikplugin_api.c +++ b/source/blender/ikplugin/intern/ikplugin_api.c @@ -79,14 +79,14 @@ static IKPlugin ikplugin_tab[] = { 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]; |