Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/gpencil.c
| Show First 20 Lines • Show All 2,724 Lines • ▼ Show 20 Lines | void BKE_gpencil_visible_stroke_advanced_iter(ViewLayer *view_layer, | ||||
| Object *ob, | Object *ob, | ||||
| gpIterCb layer_cb, | gpIterCb layer_cb, | ||||
| gpIterCb stroke_cb, | gpIterCb stroke_cb, | ||||
| void *thunk, | void *thunk, | ||||
| bool do_onion, | bool do_onion, | ||||
| int cfra) | int cfra) | ||||
| { | { | ||||
| bGPdata *gpd = (bGPdata *)ob->data; | bGPdata *gpd = (bGPdata *)ob->data; | ||||
| const bool is_multiedit = ((GPENCIL_MULTIEDIT_SESSIONS_ON(gpd)) && (!GPENCIL_PLAY_ON(gpd))); | const bool is_multiedit = (GPENCIL_MULTIEDIT_SESSIONS_ON(gpd) && (!GPENCIL_PLAY_ON(gpd))); | ||||
| const bool is_onion = do_onion && ((gpd->flag & GP_DATA_STROKE_WEIGHTMODE) == 0); | const bool is_onion = do_onion && ((gpd->flag & GP_DATA_STROKE_WEIGHTMODE) == 0); | ||||
| const bool is_drawing = (gpd->runtime.sbuffer_used > 0); | const bool is_drawing = (gpd->runtime.sbuffer_used > 0); | ||||
| /* Onion skinning. */ | /* Onion skinning. */ | ||||
| const bool onion_mode_abs = (gpd->onion_mode == GP_ONION_MODE_ABSOLUTE); | const bool onion_mode_abs = (gpd->onion_mode == GP_ONION_MODE_ABSOLUTE); | ||||
| const bool onion_mode_sel = (gpd->onion_mode == GP_ONION_MODE_SELECTED); | const bool onion_mode_sel = (gpd->onion_mode == GP_ONION_MODE_SELECTED); | ||||
| const bool onion_loop = (gpd->onion_flag & GP_ONION_LOOP) != 0; | const bool onion_loop = (gpd->onion_flag & GP_ONION_LOOP) != 0; | ||||
| const short onion_keytype = gpd->onion_keytype; | const short onion_keytype = gpd->onion_keytype; | ||||
| ▲ Show 20 Lines • Show All 410 Lines • Show Last 20 Lines | |||||