Bugfix [#34123] Armature "Switch Direction" doesn't work when selected bone
authorJoshua Leung <aligorith@gmail.com>
Wed, 6 Feb 2013 01:36:23 +0000 (01:36 +0000)
committerJoshua Leung <aligorith@gmail.com>
Wed, 6 Feb 2013 01:36:23 +0000 (01:36 +0000)
commit6ff014a7fe2621da897c7511fe100ea5ff2af2a9
tree0f253b377342edd7a82071b207cb955d01c1dfdf
parent2c1219dc179567bb3fe6454584196fd1d8646225
Bugfix [#34123] Armature "Switch Direction" doesn't work when selected bone
belongs to more than one chain

For example:
               /----->C
   A-->B-:
               \----->D

If bone B is selected, then it would get operated on twice, creating the
illusion that it had not been operated on. This is because we traverse up the
chains (child to parent) as the EditBone structure only stores parent to
children relationships only. A second invocation of this operator would then
work fine, as all the links to other bones would have been removed, thus
preventing further problems.

Fixed by tagging bones that have been operated on.
source/blender/editors/armature/editarmature.c