Sculpt: Apply latest clang-format changes to the branch
This commit is contained in:
parent
476b333a3e
commit
abda36c076
|
@ -1531,8 +1531,7 @@ static void project_gesture_tag_fairing_task_cb(void *__restrict userdata,
|
|||
|
||||
SCULPT_undo_push_node(sgcontext->vc.obact, node, SCULPT_UNDO_COORDS);
|
||||
|
||||
BKE_pbvh_vertex_iter_begin(sgcontext->ss->pbvh, node, vd, PBVH_ITER_UNIQUE)
|
||||
{
|
||||
BKE_pbvh_vertex_iter_begin (sgcontext->ss->pbvh, node, vd, PBVH_ITER_UNIQUE) {
|
||||
if (!sculpt_gesture_is_vertex_effected(sgcontext, &vd)) {
|
||||
continue;
|
||||
}
|
||||
|
@ -1559,8 +1558,7 @@ static void project_gesture_project_fairing_boundary_task_cb(
|
|||
|
||||
PBVHNode *node = sgcontext->nodes[i];
|
||||
PBVHVertexIter vd;
|
||||
BKE_pbvh_vertex_iter_begin(sgcontext->ss->pbvh, node, vd, PBVH_ITER_UNIQUE)
|
||||
{
|
||||
BKE_pbvh_vertex_iter_begin (sgcontext->ss->pbvh, node, vd, PBVH_ITER_UNIQUE) {
|
||||
bool project_vertex = false;
|
||||
bool vertex_fairing_mask = project_operation->fairing_mask[vd.index];
|
||||
|
||||
|
|
|
@ -3197,8 +3197,7 @@ static void do_fairing_brush_tag_store_task_cb_ex(void *__restrict userdata,
|
|||
|
||||
const int thread_id = BLI_task_parallel_thread_id(tls);
|
||||
|
||||
BKE_pbvh_vertex_iter_begin(ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE)
|
||||
{
|
||||
BKE_pbvh_vertex_iter_begin (ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE) {
|
||||
if (!sculpt_brush_test_sq_fn(&test, vd.co)) {
|
||||
continue;
|
||||
}
|
||||
|
@ -3273,8 +3272,7 @@ static void do_fairing_brush_displace_task_cb_ex(void *__restrict userdata,
|
|||
SculptThreadedTaskData *data = userdata;
|
||||
SculptSession *ss = data->ob->sculpt;
|
||||
PBVHVertexIter vd;
|
||||
BKE_pbvh_vertex_iter_begin(ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE)
|
||||
{
|
||||
BKE_pbvh_vertex_iter_begin (ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE) {
|
||||
if (!ss->cache->fairing_mask[vd.index]) {
|
||||
continue;
|
||||
}
|
||||
|
@ -3780,8 +3778,7 @@ static void do_scene_project_brush_task_cb_ex(void *__restrict userdata,
|
|||
SCULPT_orig_vert_data_init(&orig_data, data->ob, data->nodes[n]);
|
||||
|
||||
PBVHVertexIter vd;
|
||||
BKE_pbvh_vertex_iter_begin(ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE)
|
||||
{
|
||||
BKE_pbvh_vertex_iter_begin (ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE) {
|
||||
if (!sculpt_brush_test_sq_fn(&test, vd.co)) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -1004,8 +1004,7 @@ static void do_boundary_brush_circle_task_cb_ex(void *__restrict userdata,
|
|||
SculptOrigVertData orig_data;
|
||||
SCULPT_orig_vert_data_init(&orig_data, data->ob, data->nodes[n]);
|
||||
|
||||
BKE_pbvh_vertex_iter_begin(ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE)
|
||||
{
|
||||
BKE_pbvh_vertex_iter_begin (ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE) {
|
||||
if (boundary->edit_info[vd.index].num_propagation_steps == -1) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -622,8 +622,7 @@ static void ipmask_filter_apply_task_cb(void *__restrict userdata,
|
|||
PBVHNode *node = filter_cache->nodes[i];
|
||||
PBVHVertexIter vd;
|
||||
bool update = false;
|
||||
BKE_pbvh_vertex_iter_begin(ss->pbvh, node, vd, PBVH_ITER_UNIQUE)
|
||||
{
|
||||
BKE_pbvh_vertex_iter_begin (ss->pbvh, node, vd, PBVH_ITER_UNIQUE) {
|
||||
if (SCULPT_automasking_factor_get(filter_cache->automasking, ss, vd.index) < 0.5f) {
|
||||
continue;
|
||||
}
|
||||
|
@ -818,8 +817,7 @@ static void ipmask_filter_apply_from_original_task_cb(
|
|||
const eSculptIPMaskFilterType filter_type = data->filter_type;
|
||||
bool update = false;
|
||||
SCULPT_orig_vert_data_init(&orig_data, data->ob, node);
|
||||
BKE_pbvh_vertex_iter_begin(ss->pbvh, node, vd, PBVH_ITER_UNIQUE)
|
||||
{
|
||||
BKE_pbvh_vertex_iter_begin (ss->pbvh, node, vd, PBVH_ITER_UNIQUE) {
|
||||
if (SCULPT_automasking_factor_get(filter_cache->automasking, ss, vd.index) < 0.5f) {
|
||||
continue;
|
||||
}
|
||||
|
@ -893,8 +891,7 @@ static void ipmask_filter_restore_original_mask_task_cb(
|
|||
bool update = false;
|
||||
SCULPT_orig_vert_data_init(&orig_data, data->ob, node);
|
||||
PBVHVertexIter vd;
|
||||
BKE_pbvh_vertex_iter_begin(ss->pbvh, node, vd, PBVH_ITER_UNIQUE)
|
||||
{
|
||||
BKE_pbvh_vertex_iter_begin (ss->pbvh, node, vd, PBVH_ITER_UNIQUE) {
|
||||
SCULPT_orig_vert_data_update(&orig_data, &vd);
|
||||
*vd.mask = orig_data.mask;
|
||||
update = true;
|
||||
|
|
|
@ -89,8 +89,7 @@ static void sculpt_gradient_apply_task_cb(void *__restrict userdata,
|
|||
SCULPT_orig_vert_data_init(&orig_data, data->ob, data->nodes[n]);
|
||||
|
||||
PBVHVertexIter vd;
|
||||
BKE_pbvh_vertex_iter_begin(ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE)
|
||||
{
|
||||
BKE_pbvh_vertex_iter_begin (ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE) {
|
||||
float fade = vd.mask ? *vd.mask : 0.0f;
|
||||
fade *= SCULPT_automasking_factor_get(ss->filter_cache->automasking, ss, vd.index);
|
||||
if (fade == 0.0f) {
|
||||
|
|
|
@ -177,8 +177,7 @@ static void do_pose_brush_bend_task_cb_ex(void *__restrict userdata,
|
|||
SCULPT_orig_vert_data_init(&orig_data, data->ob, data->nodes[n]);
|
||||
|
||||
PBVHVertexIter vd;
|
||||
BKE_pbvh_vertex_iter_begin(ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE)
|
||||
{
|
||||
BKE_pbvh_vertex_iter_begin (ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE) {
|
||||
SCULPT_orig_vert_data_update(&orig_data, &vd);
|
||||
|
||||
const float ik_chain_weight = segments[0].weights[vd.index] *
|
||||
|
|
|
@ -577,8 +577,7 @@ static void SCULPT_do_directional_smooth_task_cb_ex(void *__restrict userdata,
|
|||
ss, &test, data->brush->falloff_shape);
|
||||
const int thread_id = BLI_task_parallel_thread_id(tls);
|
||||
|
||||
BKE_pbvh_vertex_iter_begin(ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE)
|
||||
{
|
||||
BKE_pbvh_vertex_iter_begin (ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE) {
|
||||
if (!sculpt_brush_test_sq_fn(&test, vd.co)) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -278,8 +278,7 @@ static void sculpt_elastic_transform_task_cb(void *__restrict userdata,
|
|||
SCULPT_undo_push_node(data->ob, node, SCULPT_UNDO_COORDS);
|
||||
|
||||
PBVHVertexIter vd;
|
||||
BKE_pbvh_vertex_iter_begin(ss->pbvh, node, vd, PBVH_ITER_UNIQUE)
|
||||
{
|
||||
BKE_pbvh_vertex_iter_begin (ss->pbvh, node, vd, PBVH_ITER_UNIQUE) {
|
||||
SCULPT_orig_vert_data_update(&orig_data, &vd);
|
||||
float transformed_co[3], orig_co[3], disp[3];
|
||||
const float fade = vd.mask ? *vd.mask : 0.0f;
|
||||
|
|
Loading…
Reference in New Issue