Cleanup: Make format

This commit is contained in:
Antonio Vazquez 2022-03-08 16:41:30 +01:00
parent e74838d0d0
commit 62885637fb
1 changed files with 8 additions and 8 deletions

View File

@ -181,11 +181,8 @@ typedef struct tStrokeBuildDetails {
} tStrokeBuildDetails;
/* Sequential and additive - Show strokes one after the other. */
static void build_sequential(BuildGpencilModifierData *mmd,
bGPdata *gpd,
bGPDframe *gpf,
float fac,
bool additive)
static void build_sequential(
BuildGpencilModifierData *mmd, bGPdata *gpd, bGPDframe *gpf, float fac, bool additive)
{
size_t tot_strokes = BLI_listbase_count(&gpf->strokes);
size_t start_stroke;
@ -197,15 +194,18 @@ static void build_sequential(BuildGpencilModifierData *mmd,
if (additive) {
if (gpf->prev) {
start_stroke = BLI_listbase_count(&gpf->prev->strokes);
} else {
}
else {
start_stroke = 0;
}
if (start_stroke <= tot_strokes) {
tot_strokes = tot_strokes - start_stroke;
} else {
}
else {
start_stroke = 0;
}
} else {
}
else {
start_stroke = 0;
}