Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/gpencil_modifier.c
| Show First 20 Lines • Show All 509 Lines • ▼ Show 20 Lines | void BKE_gpencil_eval_geometry(Depsgraph *depsgraph, | ||||
| for (bGPDlayer *gpl = gpd->layers.first; gpl; gpl = gpl->next) { | for (bGPDlayer *gpl = gpd->layers.first; gpl; gpl = gpl->next) { | ||||
| gpl->actframe = BKE_gpencil_layer_getframe(gpl, ctime, GP_GETFRAME_USE_PREV); | gpl->actframe = BKE_gpencil_layer_getframe(gpl, ctime, GP_GETFRAME_USE_PREV); | ||||
| } | } | ||||
| /* TODO: Move "derived_gpf" logic here from DRW_gpencil_populate_datablock()? | /* TODO: Move "derived_gpf" logic here from DRW_gpencil_populate_datablock()? | ||||
| * This would be better than inventing our own logic for this stuff... | * This would be better than inventing our own logic for this stuff... | ||||
| */ | */ | ||||
| /* TODO: Move the following code to "BKE_gpencil_eval_done()" (marked as an exit node) | /* TODO: Move the following code to "BKE_gpencil_eval_done()" (marked as an exit node) | ||||
| * later when there's more happening here. For now, let's just keep this in here to avoid | * later when there's more happening here. For now, let's just keep this in here to avoid | ||||
| * needing to have one more node slowing down evaluation... | * needing to have one more node slowing down evaluation... | ||||
| */ | */ | ||||
| if (DEG_is_active(depsgraph)) { | if (DEG_is_active(depsgraph)) { | ||||
| bGPdata *gpd_orig = (bGPdata *)DEG_get_original_id(&gpd->id); | bGPdata *gpd_orig = (bGPdata *)DEG_get_original_id(&gpd->id); | ||||
| /* sync "actframe" changes back to main-db too, | /* sync "actframe" changes back to main-db too, | ||||
| * so that editing tools work with copy-on-write | * so that editing tools work with copy-on-write | ||||
| * when the current frame changes | * when the current frame changes | ||||
| */ | */ | ||||
| for (bGPDlayer *gpl = gpd_orig->layers.first; gpl; gpl = gpl->next) { | for (bGPDlayer *gpl = gpd_orig->layers.first; gpl; gpl = gpl->next) { | ||||
| ▲ Show 20 Lines • Show All 293 Lines • Show Last 20 Lines | |||||