Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c
| Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
| * There are two modes for how the strokes are sequenced (at a macro-level): | * There are two modes for how the strokes are sequenced (at a macro-level): | ||||
| * - Sequential Mode - Strokes appear/disappear one after the other. Only a single one changes at a time. | * - Sequential Mode - Strokes appear/disappear one after the other. Only a single one changes at a time. | ||||
| * - Concurrent Mode - Multiple strokes appear/disappear at once. | * - Concurrent Mode - Multiple strokes appear/disappear at once. | ||||
| * | * | ||||
| * Assumptions: | * Assumptions: | ||||
| * - Stroke points are generally equally spaced. This implies that we can just add/remove points, | * - Stroke points are generally equally spaced. This implies that we can just add/remove points, | ||||
| * without worrying about distances between them / adding extra interpolated points between | * without worrying about distances between them / adding extra interpolated points between | ||||
| * an visible point and one about to be added/removed (or any similar tapering effects). | * an visible point and one about to be added/removed (or any similar tapering effects). | ||||
| * | |||||
| * - All strokes present are fully visible (i.e. we don't have to ignore any) | * - All strokes present are fully visible (i.e. we don't have to ignore any) | ||||
| */ | */ | ||||
| /* Remove a particular stroke */ | /* Remove a particular stroke */ | ||||
| static void clear_stroke(bGPDframe *gpf, bGPDstroke *gps) | static void clear_stroke(bGPDframe *gpf, bGPDstroke *gps) | ||||
| { | { | ||||
| BLI_remlink(&gpf->strokes, gps); | BLI_remlink(&gpf->strokes, gps); | ||||
| BKE_gpencil_free_stroke(gps); | BKE_gpencil_free_stroke(gps); | ||||
| ▲ Show 20 Lines • Show All 458 Lines • Show Last 20 Lines | |||||