Cleanup: format, remove commented code & unused variable
This commit is contained in:
parent
3c1fb9aea1
commit
642ff82f74
|
@ -533,7 +533,8 @@ static ModifierData *curve_get_tessellate_point(const Scene *scene,
|
|||
}
|
||||
|
||||
if (md->type == eModifierType_Smooth) {
|
||||
/* Smooth modifier works with mesh edges explicitly (so needs tesselation, thus cannnot work on control points). */
|
||||
/* Smooth modifier works with mesh edges explicitly
|
||||
* (so needs tessellation, thus cannot work on control points). */
|
||||
md->mode &= ~eModifierMode_ApplyOnSpline;
|
||||
return pretessellatePoint;
|
||||
}
|
||||
|
|
|
@ -286,7 +286,7 @@ static void voxel_size_parallel_lines_draw(uint pos3d,
|
|||
immEnd();
|
||||
}
|
||||
|
||||
static void voxel_size_edit_draw(const bContext *C, ARegion * /*ar*/, void *arg)
|
||||
static void voxel_size_edit_draw(const bContext *C, ARegion * /*region*/, void *arg)
|
||||
{
|
||||
VoxelSizeEditCustomData *cd = static_cast<VoxelSizeEditCustomData *>(arg);
|
||||
|
||||
|
|
|
@ -241,7 +241,6 @@ static void snap_object_data_mesh_get(SnapObjectContext *sctx,
|
|||
BVHTreeFromMesh *r_treedata)
|
||||
{
|
||||
const Span<MVert> verts = me_eval->verts();
|
||||
const Span<MEdge> edges = me_eval->edges();
|
||||
const Span<MPoly> polys = me_eval->polys();
|
||||
const Span<MLoop> loops = me_eval->loops();
|
||||
|
||||
|
|
|
@ -577,15 +577,8 @@ static void rna_ColorManagedColorspaceSettings_colorspace_set(struct PointerRNA
|
|||
}
|
||||
|
||||
static const EnumPropertyItem *rna_ColorManagedColorspaceSettings_colorspace_itemf(
|
||||
bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free)
|
||||
bContext *UNUSED(C), PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free)
|
||||
{
|
||||
# if 0 /* FIXME: Causes blank drop-down, see T102316. */
|
||||
if (C == NULL) {
|
||||
return rna_enum_color_space_convert_default_items;
|
||||
}
|
||||
# else
|
||||
UNUSED_VARS(C);
|
||||
# endif
|
||||
EnumPropertyItem *items = NULL;
|
||||
int totitem = 0;
|
||||
|
||||
|
|
|
@ -4512,15 +4512,8 @@ static void rna_NodeConvertColorSpace_to_color_space_set(struct PointerRNA *ptr,
|
|||
}
|
||||
|
||||
static const EnumPropertyItem *rna_NodeConvertColorSpace_color_space_itemf(
|
||||
bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free)
|
||||
bContext *UNUSED(C), PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free)
|
||||
{
|
||||
# if 0 /* FIXME: Causes blank drop-down, see T102316. */
|
||||
if (C == NULL) {
|
||||
return rna_enum_color_space_convert_default_items;
|
||||
}
|
||||
# else
|
||||
UNUSED_VARS(C);
|
||||
# endif
|
||||
EnumPropertyItem *items = NULL;
|
||||
int totitem = 0;
|
||||
|
||||
|
|
|
@ -352,7 +352,8 @@ static void modifier_panel_header(const bContext *C, Panel *panel)
|
|||
buttons_number++;
|
||||
}
|
||||
/* Some modifiers can work with pre-tessellated curves only. */
|
||||
else if (ELEM(md->type, eModifierType_Hook, eModifierType_Softbody, eModifierType_MeshDeform)) {
|
||||
else if (ELEM(
|
||||
md->type, eModifierType_Hook, eModifierType_Softbody, eModifierType_MeshDeform)) {
|
||||
/* Add button (appearing to be ON) and add tip why this can't be changed. */
|
||||
sub = uiLayoutRow(row, true);
|
||||
uiBlock *block = uiLayoutGetBlock(sub);
|
||||
|
|
Loading…
Reference in New Issue