Fix [#31430] part 2: crash in iTaSC when end effector is a fixed bone. This situation...
authorBenoit Bolsee <benoit.bolsee@online.be>
Thu, 7 Jun 2012 08:16:41 +0000 (08:16 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Thu, 7 Jun 2012 08:16:41 +0000 (08:16 +0000)
commit2b889eea8d1e43e46c9a1dfb2ab3a253eab60e55
tree020c97f7c11fa09938a29812215e05194ed7fa03
parentef850d75f52726e9d479cd9873ec8b6343cdf3f2
Fix [#31430] part 2: crash in iTaSC when end effector is a fixed bone. This situation was causing access to invalid index in the joint angle array although the end effector doesn't need any joint angle to compute its pause. Fixed this by changing the internal API of joint array: return pointer instead of reference so that NULL pointer can be returned instead of crashing when the index is invalid.
intern/itasc/Armature.cpp
intern/itasc/Distance.cpp
intern/itasc/kdl/jntarray.cpp
intern/itasc/kdl/jntarray.hpp
intern/itasc/kdl/joint.cpp
intern/itasc/kdl/joint.hpp
intern/itasc/kdl/kinfam_io.cpp
intern/itasc/kdl/segment.cpp
intern/itasc/kdl/segment.hpp
intern/itasc/kdl/utilities/utility.h
source/blender/ikplugin/intern/itasc_plugin.cpp