From 7cf9300d4dfe15dfac1739091800460caa41f230 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sat, 24 Sep 2005 10:34:50 +0000 Subject: [PATCH] Old error... on ctrl+clicking new bones, the envelope bone distances were not correctly flushed for connected bones. --- source/blender/src/editarmature.c | 7 +++++-- source/blender/src/headerbuttons.c | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/source/blender/src/editarmature.c b/source/blender/src/editarmature.c index 7c6483b1871..bac31420e2f 100644 --- a/source/blender/src/editarmature.c +++ b/source/blender/src/editarmature.c @@ -1273,12 +1273,12 @@ void addvert_armature(void) if(to_root) { VECCOPY(newbone->head, ebone->head); - + newbone->rad_head= ebone->rad_tail; newbone->parent= ebone->parent; } else { VECCOPY(newbone->head, ebone->tail); - + newbone->rad_head= ebone->rad_tail; newbone->parent= ebone; newbone->flag |= BONE_CONNECTED; } @@ -1470,6 +1470,7 @@ void make_bone_parent(void) if(val==1 && actbone->parent) { actbone->flag |= BONE_CONNECTED; VECCOPY(actbone->head, actbone->parent->tail); + actbone->rad_head= actbone->parent->rad_tail; countall(); // checks selection allqueue(REDRAWVIEW3D, 0); BIF_undo_push("Connect to Parent"); @@ -1496,6 +1497,8 @@ void make_bone_parent(void) VecSubf(offset, actbone->tail, selbone->head); VECCOPY(selbone->head, actbone->tail); + selbone->rad_head= actbone->rad_tail; + VecAddf(selbone->tail, selbone->tail, offset); // offset for all its children diff --git a/source/blender/src/headerbuttons.c b/source/blender/src/headerbuttons.c index 3023c2347fb..674437d741e 100644 --- a/source/blender/src/headerbuttons.c +++ b/source/blender/src/headerbuttons.c @@ -489,7 +489,6 @@ int std_libbuttons(uiBlock *block, short xco, short yco, static void do_update_for_newframe(int mute, int events) { extern void audiostream_scrub(unsigned int frame); /* seqaudio.c */ - ScrArea *sa; if(events) { allqueue(REDRAWALL, 0);