From ca2b8f00eb7f7e58a246f307fc75b353de9002a9 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Thu, 28 Oct 2004 21:50:32 +0000 Subject: [PATCH] Potential fix for #1684 Buttons (editingbuttons) flicker when adding armature bones. Added proper redraw event extra for buttons menu --- source/blender/src/drawview.c | 2 +- source/blender/src/editarmature.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c index 1b8d63158d0..2599ac23c8d 100644 --- a/source/blender/src/drawview.c +++ b/source/blender/src/drawview.c @@ -2016,7 +2016,7 @@ void drawview3d_render(struct View3D *v3d) ob= ob->id.next; } - /* first deaw set */ + /* first draw set */ if(G.scene->set) { /* patch: color remains constant */ diff --git a/source/blender/src/editarmature.c b/source/blender/src/editarmature.c index e1c2f52d350..aedab4fd68d 100644 --- a/source/blender/src/editarmature.c +++ b/source/blender/src/editarmature.c @@ -1682,7 +1682,8 @@ static void add_bone_input (Object *ob) Mat4One (bone->obmat); bone->size[0]=bone->size[1]=bone->size[2]=1.0F; - force_draw(); + force_draw_plus(SPACE_BUTS); + while(qtest()) { event= extern_qread(&val); if(val) {