Old error... on ctrl+clicking new bones, the envelope bone distances were
authorTon Roosendaal <ton@blender.org>
Sat, 24 Sep 2005 10:34:50 +0000 (10:34 +0000)
committerTon Roosendaal <ton@blender.org>
Sat, 24 Sep 2005 10:34:50 +0000 (10:34 +0000)
not correctly flushed for connected bones.

source/blender/src/editarmature.c
source/blender/src/headerbuttons.c

index 7c6483b18713c33938d6bc071a2247381deb7799..bac31420e2fcb4d309e1831db276208fc2b8f4fc 100644 (file)
@@ -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 
index 3023c2347fbf65d348ed9a6c7cb9636912c3ded4..674437d741eec0981a2bc3d90a87de8b80395a4f 100644 (file)
@@ -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);