Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2008-10-21 05:11:18 +0400
committerMartin Poirier <theeth@yahoo.com>2008-10-21 05:11:18 +0400
commit11afafb01e42803f578c97a966807e5e5baaefb1 (patch)
tree535ea4c56f27dd66b9f20effec6d312e35bf903b /source/blender/src
parentff2fcdf34edb85c7c891a9d3dc99f92a98bde4aa (diff)
[#17873] "switch direction" for bones can cause infinite loop
Stop the infinite loop, but it could be loosing parent relations that it kept before. Aligorith needs to review.
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/editarmature.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/editarmature.c b/source/blender/src/editarmature.c
index d5e5b5a1c4a..ef6be4a010d 100644
--- a/source/blender/src/editarmature.c
+++ b/source/blender/src/editarmature.c
@@ -3297,6 +3297,9 @@ void switch_direction_armature (void)
else
ebo->flag &= ~BONE_CONNECTED;
+ child->parent = NULL;
+ child->flag &= ~BONE_CONNECTED;
+
/* FIXME: other things that need fixing?
* i.e. roll?
*/