Cleanup: warning, whitespace
This commit is contained in:
@@ -3251,7 +3251,7 @@ static void do_brush_action(Sculpt *sd, Object *ob, Brush *brush, UnifiedPaintSe
|
|||||||
};
|
};
|
||||||
|
|
||||||
BLI_task_parallel_range_ex(0, totnode, &task_data, NULL, 0, do_brush_action_task_cb,
|
BLI_task_parallel_range_ex(0, totnode, &task_data, NULL, 0, do_brush_action_task_cb,
|
||||||
((sd->flags & SCULPT_USE_OPENMP) && totnode > SCULPT_OMP_LIMIT), false);
|
((sd->flags & SCULPT_USE_OPENMP) && totnode > SCULPT_OMP_LIMIT), false);
|
||||||
|
|
||||||
if (sculpt_brush_needs_normal(brush))
|
if (sculpt_brush_needs_normal(brush))
|
||||||
update_sculpt_normal(sd, ob, nodes, totnode);
|
update_sculpt_normal(sd, ob, nodes, totnode);
|
||||||
@@ -3431,7 +3431,7 @@ static void sculpt_combine_proxies(Sculpt *sd, Object *ob)
|
|||||||
};
|
};
|
||||||
|
|
||||||
BLI_task_parallel_range_ex(0, totnode, &data, NULL, 0, sculpt_combine_proxies_task_cb,
|
BLI_task_parallel_range_ex(0, totnode, &data, NULL, 0, sculpt_combine_proxies_task_cb,
|
||||||
((sd->flags & SCULPT_USE_OPENMP) && totnode > SCULPT_OMP_LIMIT), false);
|
((sd->flags & SCULPT_USE_OPENMP) && totnode > SCULPT_OMP_LIMIT), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nodes)
|
if (nodes)
|
||||||
@@ -3507,11 +3507,11 @@ static void sculpt_flush_stroke_deform(Sculpt *sd, Object *ob)
|
|||||||
|
|
||||||
SculptThreadedTaskData data = {
|
SculptThreadedTaskData data = {
|
||||||
.sd = sd, .ob = ob, .brush = brush, .nodes = nodes,
|
.sd = sd, .ob = ob, .brush = brush, .nodes = nodes,
|
||||||
.vertCos = vertCos,
|
.vertCos = vertCos,
|
||||||
};
|
};
|
||||||
|
|
||||||
BLI_task_parallel_range_ex(0, totnode, &data, NULL, 0, sculpt_flush_stroke_deform_task_cb,
|
BLI_task_parallel_range_ex(0, totnode, &data, NULL, 0, sculpt_flush_stroke_deform_task_cb,
|
||||||
((sd->flags & SCULPT_USE_OPENMP) && totnode > SCULPT_OMP_LIMIT), false);
|
((sd->flags & SCULPT_USE_OPENMP) && totnode > SCULPT_OMP_LIMIT), false);
|
||||||
|
|
||||||
if (vertCos) {
|
if (vertCos) {
|
||||||
sculpt_vertcos_to_key(ob, ss->kb, vertCos);
|
sculpt_vertcos_to_key(ob, ss->kb, vertCos);
|
||||||
|
|||||||
@@ -1055,7 +1055,7 @@ static void node_shader_buts_anisotropic(uiLayout *layout, bContext *UNUSED(C),
|
|||||||
uiItemR(layout, ptr, "distribution", 0, "", ICON_NONE);
|
uiItemR(layout, ptr, "distribution", 0, "", ICON_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void node_shader_buts_subsurface(uiLayout *layout, bContext *C, PointerRNA *ptr)
|
static void node_shader_buts_subsurface(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||||
{
|
{
|
||||||
uiItemR(layout, ptr, "falloff", 0, "", ICON_NONE);
|
uiItemR(layout, ptr, "falloff", 0, "", ICON_NONE);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1182,7 +1182,7 @@ static int pyrna_string_to_enum(PyObject *item, PointerRNA *ptr, PropertyRNA *pr
|
|||||||
*
|
*
|
||||||
* Useful when the values aren't flags.
|
* Useful when the values aren't flags.
|
||||||
*
|
*
|
||||||
* \param type_convert_sign: Maps signed to unsuigned range,
|
* \param type_convert_sign: Maps signed to unsigned range,
|
||||||
* needed when we want to use the full range of a signed short/char.
|
* needed when we want to use the full range of a signed short/char.
|
||||||
*/
|
*/
|
||||||
BLI_bitmap *pyrna_set_to_enum_bitmap(
|
BLI_bitmap *pyrna_set_to_enum_bitmap(
|
||||||
|
|||||||
Reference in New Issue
Block a user