Cleanup: indentation
This commit is contained in:
@@ -149,8 +149,8 @@ float get_modifier_point_weight(MDeformVert *dvert, bool inverse, int def_nr)
|
||||
|
||||
/* set material when apply modifiers (used in tint and color modifier) */
|
||||
void gpencil_apply_modifier_material(
|
||||
Main *bmain, Object *ob, Material *mat,
|
||||
GHash *gh_color, bGPDstroke *gps, bool crt_material)
|
||||
Main *bmain, Object *ob, Material *mat,
|
||||
GHash *gh_color, bGPDstroke *gps, bool crt_material)
|
||||
{
|
||||
MaterialGPencilStyle *gp_style = mat->gp_style;
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ bool is_stroke_affected_by_modifier(
|
||||
float get_modifier_point_weight(struct MDeformVert *dvert, bool inverse, int def_nr);
|
||||
|
||||
void gpencil_apply_modifier_material(
|
||||
struct Main *bmain, struct Object *ob, struct Material *mat,
|
||||
struct GHash *gh_color, struct bGPDstroke *gps, bool crt_material);
|
||||
struct Main *bmain, struct Object *ob, struct Material *mat,
|
||||
struct GHash *gh_color, struct bGPDstroke *gps, bool crt_material);
|
||||
|
||||
#endif /* __MOD_GPENCIL_UTIL_H__ */
|
||||
|
||||
@@ -147,8 +147,9 @@ static void bakeModifier(
|
||||
|
||||
deformStroke(md, depsgraph, ob, gpl, gps);
|
||||
|
||||
gpencil_apply_modifier_material(bmain, ob, mat, gh_color, gps,
|
||||
(bool)(mmd->flag & GP_OPACITY_CREATE_COLORS));
|
||||
gpencil_apply_modifier_material(
|
||||
bmain, ob, mat, gh_color, gps,
|
||||
(bool)(mmd->flag & GP_OPACITY_CREATE_COLORS));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,8 +135,9 @@ static void bakeModifier(
|
||||
|
||||
deformStroke(md, depsgraph, ob, gpl, gps);
|
||||
|
||||
gpencil_apply_modifier_material(bmain, ob, mat, gh_color, gps,
|
||||
(bool)(mmd->flag & GP_TINT_CREATE_COLORS));
|
||||
gpencil_apply_modifier_material(
|
||||
bmain, ob, mat, gh_color, gps,
|
||||
(bool)(mmd->flag & GP_TINT_CREATE_COLORS));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,11 +111,12 @@ static char *bmp_slots_as_args(const BMOSlotType slot_types[BMO_OP_MAX_SLOTS], c
|
||||
(slot_types[i].subtype.elem & BMO_OP_SLOT_SUBTYPE_ELEM_IS_SINGLE) ? "None" : "[]"; break;
|
||||
case BMO_OP_SLOT_MAPPING: value = "{}"; break;
|
||||
}
|
||||
BLI_dynstr_appendf(dyn_str, i ? ", %.*s=%s%s%s%s%s" : "%.*s=%s%s%s%s%s",
|
||||
name_len, slot_types[i].name,
|
||||
set ? "{" : "", quoted ? "'" : "",
|
||||
value,
|
||||
quoted ? "'" : "", set ? "}" : "");
|
||||
BLI_dynstr_appendf(
|
||||
dyn_str, i ? ", %.*s=%s%s%s%s%s" : "%.*s=%s%s%s%s%s",
|
||||
name_len, slot_types[i].name,
|
||||
set ? "{" : "", quoted ? "'" : "",
|
||||
value,
|
||||
quoted ? "'" : "", set ? "}" : "");
|
||||
i++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user