Cleanup: format

This commit is contained in:
Chris Blackbourn
2022-11-28 13:13:54 +13:00
parent 95003c99d9
commit c02ec74405
2 changed files with 6 additions and 4 deletions

View File

@@ -2442,11 +2442,11 @@ static int gpencil_select_exec(bContext *C, wmOperator *op)
/* if select mode is stroke, use whole stroke */
if ((ob) && (ob->mode == OB_MODE_SCULPT_GPENCIL)) {
whole |= (bool)(gpencil_select_mode_from_sculpt(ts->gpencil_selectmode_sculpt) ==
GP_SELECTMODE_STROKE);
GP_SELECTMODE_STROKE);
}
else if ((ob) && (ob->mode == OB_MODE_VERTEX_GPENCIL)) {
whole |= (bool)(gpencil_select_mode_from_vertex(ts->gpencil_selectmode_sculpt) ==
GP_SELECTMODE_STROKE);
GP_SELECTMODE_STROKE);
}
else {
whole |= (bool)(ts->gpencil_selectmode_edit == GP_SELECTMODE_STROKE);

View File

@@ -3542,7 +3542,8 @@ static LineartData *lineart_create_render_buffer(Scene *scene,
copy_v3db_v3fl(ld->conf.active_camera_pos, active_camera->object_to_world[3]);
}
copy_m4_m4(ld->conf.cam_obmat, camera->object_to_world);
/* Make sure none of the scaling factor makes in, line art expects no scaling on cameras and lights. */
/* Make sure none of the scaling factor makes in, line art expects no scaling on cameras and
* lights. */
normalize_v3(ld->conf.cam_obmat[0]);
normalize_v3(ld->conf.cam_obmat[1]);
normalize_v3(ld->conf.cam_obmat[2]);
@@ -3574,7 +3575,8 @@ static LineartData *lineart_create_render_buffer(Scene *scene,
Object *light_obj = lmd->light_contour_object;
copy_v3db_v3fl(ld->conf.camera_pos_secondary, light_obj->object_to_world[3]);
copy_m4_m4(ld->conf.cam_obmat_secondary, light_obj->object_to_world);
/* Make sure none of the scaling factor makes in, line art expects no scaling on cameras and lights. */
/* Make sure none of the scaling factor makes in, line art expects no scaling on cameras and
* lights. */
normalize_v3(ld->conf.cam_obmat_secondary[0]);
normalize_v3(ld->conf.cam_obmat_secondary[1]);
normalize_v3(ld->conf.cam_obmat_secondary[2]);