get a tad more vertical space in the toolbar.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 5 Aug 2011 09:04:11 +0000 (09:04 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 5 Aug 2011 09:04:11 +0000 (09:04 +0000)
release/scripts/startup/bl_ui/space_view3d_toolbar.py
source/blender/editors/curve/editfont.c

index 91cfd22b3d654c6a2609e79a03f6842538529430..85dd6f7da5e190d5613be932aa1eaafddcb06e9a 100644 (file)
@@ -88,8 +88,9 @@ class VIEW3D_PT_tools_objectmode(View3DPanel, bpy.types.Panel):
 
             col = layout.column(align=True)
             col.label(text="Shading:")
-            col.operator("object.shade_smooth", text="Smooth")
-            col.operator("object.shade_flat", text="Flat")
+            row = col.row(align=True)
+            row.operator("object.shade_smooth", text="Smooth")
+            row.operator("object.shade_flat", text="Flat")
 
         draw_keyframing_tools(context, layout)
 
@@ -155,8 +156,9 @@ class VIEW3D_PT_tools_meshedit(View3DPanel, bpy.types.Panel):
 
         col = layout.column(align=True)
         col.label(text="Shading:")
-        col.operator("mesh.faces_shade_smooth", text="Smooth")
-        col.operator("mesh.faces_shade_flat", text="Flat")
+        row = col.row(align=True)
+        row.operator("mesh.faces_shade_smooth", text="Smooth")
+        row.operator("mesh.faces_shade_flat", text="Flat")
 
         draw_repeat_tools(context, layout)
 
index 649ff9e953a7d6d5dd1842e432c4e8322d278c36..6c95df53d3988666dc7485bb4db9222c914b9a4c 100644 (file)
@@ -1649,10 +1649,10 @@ static int open_exec(bContext *C, wmOperator *op)
        VFont *font;
        PropertyPointerRNA *pprop;
        PointerRNA idptr;
-       char str[FILE_MAX];
-       RNA_string_get(op->ptr, "filepath", str);
+       char filepath[FILE_MAX];
+       RNA_string_get(op->ptr, "filepath", filepath);
 
-       font = load_vfont(str);
+       font= load_vfont(filepath);
 
        if(!font) {
                if(op->customdata) MEM_freeN(op->customdata);