Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/gpencil.c
| Show First 20 Lines • Show All 1,287 Lines • ▼ Show 20 Lines | for (gpf = gpl->frames.last; gpf; gpf = gpf->prev) { | ||||
| if (gpf->framenum == cframe) { | if (gpf->framenum == cframe) { | ||||
| return gpf; | return gpf; | ||||
| } | } | ||||
| } | } | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| /** Get the appropriate gp-frame from a given layer | /** | ||||
| * Get the appropriate gp-frame from a given layer | |||||
| * - this sets the layer's actframe var (if allowed to) | * - this sets the layer's actframe var (if allowed to) | ||||
| * - extension beyond range (if first gp-frame is after all frame in interest and cannot add) | * - extension beyond range (if first gp-frame is after all frame in interest and cannot add) | ||||
| * | * | ||||
| * \param gpl: Grease pencil layer | * \param gpl: Grease pencil layer | ||||
| * \param cframe: Frame number | * \param cframe: Frame number | ||||
| * \param addnew: Add option | * \param addnew: Add option | ||||
| * \return Pointer to new frame | * \return Pointer to new frame | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 1,749 Lines • Show Last 20 Lines | |||||