Cleanup: style
This commit is contained in:
@@ -908,7 +908,7 @@ static void graph_draw_driver_debug(bAnimContext *ac, ID *id, FCurve *fcu)
|
||||
glPointSize(7.0);
|
||||
|
||||
glBegin(GL_POINTS);
|
||||
glVertex2f(x, y);
|
||||
glVertex2f(x, y);
|
||||
glEnd();
|
||||
|
||||
/* inner frame */
|
||||
@@ -916,7 +916,7 @@ static void graph_draw_driver_debug(bAnimContext *ac, ID *id, FCurve *fcu)
|
||||
glPointSize(3.0);
|
||||
|
||||
glBegin(GL_POINTS);
|
||||
glVertex2f(x, y);
|
||||
glVertex2f(x, y);
|
||||
glEnd();
|
||||
|
||||
glPointSize(1.0f);
|
||||
|
||||
@@ -143,7 +143,7 @@ struct ImBuf *imb_bmp_decode(unsigned char *mem, size_t size, int flags, char co
|
||||
mem += BMP_FILEHEADER_SIZE;
|
||||
}
|
||||
else {
|
||||
return 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* for systems where an int needs to be 4 bytes aligned */
|
||||
|
||||
@@ -72,7 +72,7 @@ static void rna_Image_save_render(Image *image, bContext *C, ReportList *reports
|
||||
}
|
||||
|
||||
if (scene) {
|
||||
ImageUser iuser = {0};
|
||||
ImageUser iuser = {NULL};
|
||||
void *lock;
|
||||
|
||||
iuser.scene = scene;
|
||||
|
||||
@@ -94,7 +94,7 @@ static int rna_use_shadow_get(PointerRNA *ptr)
|
||||
Lamp *la = (Lamp *)ptr->data;
|
||||
|
||||
if (la->type == LA_SPOT) {
|
||||
return (la->mode & (LA_SHAD_BUF|LA_SHAD_RAY)) != 0;
|
||||
return (la->mode & (LA_SHAD_BUF | LA_SHAD_RAY)) != 0;
|
||||
}
|
||||
else {
|
||||
return (la->mode & LA_SHAD_RAY) != 0;
|
||||
|
||||
@@ -101,7 +101,7 @@ void RNA_api_space_text(StructRNA *srna)
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED);
|
||||
parm = RNA_def_int(func, "column", 0, INT_MIN, INT_MAX, "Column", "Column index", 0, INT_MAX);
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED);
|
||||
parm = RNA_def_int_array(func, "result", 2, 0, -1, INT_MAX, "", "Region coordinates", -1, INT_MAX);
|
||||
parm = RNA_def_int_array(func, "result", 2, NULL, -1, INT_MAX, "", "Region coordinates", -1, INT_MAX);
|
||||
RNA_def_function_output(func, parm);
|
||||
}
|
||||
|
||||
|
||||
@@ -4293,7 +4293,7 @@ static void radial_control_cancel(bContext *C, wmOperator *op)
|
||||
{
|
||||
RadialControl *rc = op->customdata;
|
||||
wmWindowManager *wm = CTX_wm_manager(C);
|
||||
ScrArea *sa = CTX_wm_area(C);
|
||||
ScrArea *sa = CTX_wm_area(C);
|
||||
|
||||
if (rc->dial) {
|
||||
MEM_freeN(rc->dial);
|
||||
|
||||
Reference in New Issue
Block a user