Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2022-03-08 18:41:30 +0300
committerAntonio Vazquez <blendergit@gmail.com>2022-03-08 18:41:30 +0300
commit62885637fb5ffbe81efe0e03a2832c5f65d0f5fe (patch)
tree6453f9581b35d1f43a656d7cdc2b3c2026cb7646 /source/blender/gpencil_modifiers
parente74838d0d011d5231b9809504c410b8bd75cfa8b (diff)
Cleanup: Make format
Diffstat (limited to 'source/blender/gpencil_modifiers')
-rw-r--r--source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c
index e0da483310d..6d9d9035c84 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c
@@ -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;
}