style cleanup
This commit is contained in:
@@ -883,7 +883,7 @@ static void region_overlap_fix(ARegion *ar)
|
||||
/* find overlapping previous region on same place */
|
||||
while (ar1) {
|
||||
if (ar1->overlap) {
|
||||
if ((ar1->alignment & RGN_SPLIT_PREV)==0)
|
||||
if ((ar1->alignment & RGN_SPLIT_PREV) == 0)
|
||||
if (BLI_rcti_isect(&ar1->winrct, &ar->winrct, NULL))
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ static bNodeSocketLink *add_reroute_do_socket_section(bContext *C, bNodeSocketLi
|
||||
}
|
||||
|
||||
add_v2_v2(insert_point, socklink->point);
|
||||
++num_links;
|
||||
num_links++;
|
||||
}
|
||||
socklink = socklink->next;
|
||||
}
|
||||
|
||||
@@ -399,7 +399,7 @@ int handleMouseInput(TransInfo *t, MouseInput *mi, wmEvent *event)
|
||||
mi->precision = 1;
|
||||
redraw = TREDRAW_HARD;
|
||||
}
|
||||
else if(event->val == KM_RELEASE) {
|
||||
else if (event->val == KM_RELEASE) {
|
||||
t->modifiers &= ~MOD_PRECISION;
|
||||
mi->precision = 0;
|
||||
redraw = TREDRAW_HARD;
|
||||
|
||||
@@ -1235,7 +1235,7 @@ static int unwrap_exec(bContext *C, wmOperator *op)
|
||||
/* double up the check here but better keep ED_unwrap_lscm interface simple and not
|
||||
* pass operator for warning append */
|
||||
modifier_unwrap_state(obedit, scene, &use_subsurf_final);
|
||||
if(use_subsurf != use_subsurf_final)
|
||||
if (use_subsurf != use_subsurf_final)
|
||||
BKE_report(op->reports, RPT_INFO, "Subsurf modifier needs to be first to work with unwrap");
|
||||
|
||||
/* execute unwrap */
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
|
||||
static void uv_warp_from_mat4_pair(float uv_dst[2], const float uv_src[2], float warp_mat[4][4],
|
||||
int axis_u, int axis_v)
|
||||
int axis_u, int axis_v)
|
||||
{
|
||||
float tuv[3] = {0.0f};
|
||||
|
||||
|
||||
@@ -148,7 +148,8 @@ struct wmEventHandler *WM_event_add_ui_handler(const struct bContext *C, ListBas
|
||||
void (*remove)(struct bContext *C, void *userdata), void *userdata);
|
||||
void WM_event_remove_ui_handler(ListBase *handlers,
|
||||
int (*func)(struct bContext *C, struct wmEvent *event, void *userdata),
|
||||
void (*remove)(struct bContext *C, void *userdata), void *userdata, int postpone);
|
||||
void (*remove)(struct bContext *C, void *userdata),
|
||||
void *userdata, int postpone);
|
||||
void WM_event_remove_area_handler(struct ListBase *handlers, void *area);
|
||||
|
||||
struct wmEventHandler *WM_event_add_modal_handler(struct bContext *C, struct wmOperator *op);
|
||||
|
||||
Reference in New Issue
Block a user