Whitespace tweaks

This commit is contained in:
Joshua Leung 2012-03-04 02:43:15 +00:00
parent d99888d786
commit 6c37e0a442
2 changed files with 46 additions and 48 deletions

@ -155,7 +155,7 @@ static void draw_modifier__generator(uiLayout *layout, ID *id, FModifier *fcm, s
cp= data->coefficients; cp= data->coefficients;
for (i=0; (i < data->arraysize) && (cp); i++, cp++) { for (i=0; (i < data->arraysize) && (cp); i++, cp++) {
/* To align with first line. */ /* To align with first line */
if (i) if (i)
uiDefBut(block, LABEL, 1, " ", 0, 0, 50, 20, NULL, 0.0, 0.0, 0, 0, ""); uiDefBut(block, LABEL, 1, " ", 0, 0, 50, 20, NULL, 0.0, 0.0, 0, 0, "");
else else
@ -208,7 +208,7 @@ static void draw_modifier__generator(uiLayout *layout, ID *id, FModifier *fcm, s
cp= data->coefficients; cp= data->coefficients;
for (i=0; (i < data->poly_order) && (cp); i++, cp+=2) { for (i=0; (i < data->poly_order) && (cp); i++, cp+=2) {
/* To align with first line. */ /* To align with first line */
if (i) if (i)
uiDefBut(block, LABEL, 1, " ", 0, 0, 50, 20, NULL, 0.0, 0.0, 0, 0, ""); uiDefBut(block, LABEL, 1, " ", 0, 0, 50, 20, NULL, 0.0, 0.0, 0, 0, "");
else else

@ -33,7 +33,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <stddef.h> #include <stddef.h>
#include "BLI_math.h" #include "BLI_math.h"
#include "BLI_blenlib.h" #include "BLI_blenlib.h"
@ -51,7 +50,6 @@
#include "RNA_access.h" #include "RNA_access.h"
#include "ED_gpencil.h" #include "ED_gpencil.h"
#include "UI_interface.h" #include "UI_interface.h"
@ -228,8 +226,8 @@ static void gp_drawui_layer(uiLayout *layout, bGPdata *gpd, bGPDlayer *gpl, cons
/* stroke drawing options available */ /* stroke drawing options available */
typedef enum eGP_Stroke_Ops { typedef enum eGP_Stroke_Ops {
STROKE_OPTS_NORMAL = 0, STROKE_OPTS_NORMAL = 0,
STROKE_OPTS_V3D_OFF = 1, STROKE_OPTS_V3D_OFF,
STROKE_OPTS_V3D_ON = 2, STROKE_OPTS_V3D_ON,
} eGP_Stroke_Ops; } eGP_Stroke_Ops;
/* Draw the contents for a grease-pencil panel*/ /* Draw the contents for a grease-pencil panel*/
@ -253,8 +251,8 @@ static void draw_gpencil_panel(bContext *C, uiLayout *layout, bGPdata *gpd, Poin
/* add new layer button - can be used even when no data, since it can add a new block too */ /* add new layer button - can be used even when no data, since it can add a new block too */
uiItemO(col, IFACE_("New Layer"), ICON_NONE, "GPENCIL_OT_layer_add"); uiItemO(col, IFACE_("New Layer"), ICON_NONE, "GPENCIL_OT_layer_add");
row = uiLayoutRow(col, 1); row = uiLayoutRow(col, 1);
uiItemO(row, IFACE_("Delete Frame"), ICON_NONE, "GPENCIL_OT_active_frame_delete"); uiItemO(row, IFACE_("Delete Frame"), ICON_NONE, "GPENCIL_OT_active_frame_delete");
uiItemO(row, IFACE_("Convert"), ICON_NONE, "GPENCIL_OT_convert"); uiItemO(row, IFACE_("Convert"), ICON_NONE, "GPENCIL_OT_convert");
/* sanity checks... */ /* sanity checks... */
if (gpd == NULL) if (gpd == NULL)