forked from bartvdbraak/blender
style cleanup
This commit is contained in:
parent
e3d3ffe746
commit
a91814e94d
@ -806,7 +806,7 @@ void bmo_subdivide_edges_exec(BMesh *bm, BMOperator *op)
|
||||
float vec1[3], vec2[3];
|
||||
|
||||
/* skip non-quads if requested */
|
||||
if(use_onlyquads && face->len != 4)
|
||||
if (use_onlyquads && face->len != 4)
|
||||
continue;
|
||||
|
||||
/* figure out which pattern to use */
|
||||
|
@ -732,7 +732,7 @@ static void ed_marker_move_apply(bContext *C, wmOperator *op)
|
||||
/* so we get view3d redraws */
|
||||
BKE_scene_camera_switch_update(scene);
|
||||
|
||||
if(camera != scene->camera) {
|
||||
if (camera != scene->camera) {
|
||||
BKE_screen_view3d_scene_sync(sc);
|
||||
WM_event_add_notifier(C, NC_SCENE | NA_EDITED, scene);
|
||||
}
|
||||
|
@ -431,7 +431,7 @@ static int key_test_depth(PEData *data, const float co[3], const int screen_co[2
|
||||
#else /* faster to use depths, these are calculated in PE_set_view3d_data */
|
||||
|
||||
/* check if screen_co is within bounds because brush_cut uses out of screen coords */
|
||||
if(screen_co[0] >= 0 && screen_co[0] < vd->w && screen_co[1] >= 0 && screen_co[1] < vd->h) {
|
||||
if (screen_co[0] >= 0 && screen_co[0] < vd->w && screen_co[1] >= 0 && screen_co[1] < vd->h) {
|
||||
BLI_assert(vd && vd->depths);
|
||||
/* we know its not clipped */
|
||||
depth = vd->depths[screen_co[1] * vd->w + screen_co[0]];
|
||||
|
@ -1940,7 +1940,7 @@ static void draw_dupli_objects_color(Scene *scene, ARegion *ar, View3D *v3d, Bas
|
||||
* is intended to speed up drawing, and drawing extra (especially wire) can
|
||||
* slow it down too much */
|
||||
dtx = tbase.object->dtx;
|
||||
if(tbase.object->dt != OB_BOUNDBOX)
|
||||
if (tbase.object->dt != OB_BOUNDBOX)
|
||||
tbase.object->dtx = base->object->dtx;
|
||||
|
||||
/* negative scale flag has to propagate */
|
||||
|
@ -64,7 +64,7 @@ static void rna_Scene_frame_set(Scene *scene, int frame, float subframe)
|
||||
|
||||
/* don't do notifier when we're rendering, avoid some viewport crashes
|
||||
* redrawing while the data is being modified for render */
|
||||
if(!G.is_rendering) {
|
||||
if (!G.is_rendering) {
|
||||
/* cant use NC_SCENE|ND_FRAME because this causes wm_event_do_notifiers to call
|
||||
* BKE_scene_update_for_newframe which will loose any un-keyed changes [#24690] */
|
||||
/* WM_main_add_notifier(NC_SCENE|ND_FRAME, scene); */
|
||||
|
Loading…
Reference in New Issue
Block a user