UI: various panels fixes.
[blender.git] / source / blender / editors / space_buttons / buttons_header.c
index 40e3564e69b1eb0b22dd74088f6a998676b098b1..29374d7cb3238cff551e228d473381843219c38d 100644 (file)
@@ -70,10 +70,8 @@ static void do_viewmenu(bContext *C, void *arg, int event)
                case 1:
                case 2:
                        sbuts->align= event;
-                       if(event) {
+                       if(sbuts->align)
                                sbuts->re_align= 1;
-                               // uiAlignPanelStep(sa, 1.0);
-                       }
             break;
     }