Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/anim_markers.c
| Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Apply some transformation to markers after the fact | * Apply some transformation to markers after the fact | ||||
| * | * | ||||
| * \param markers: List of markers to affect - this may or may not be the scene markers list, | * \param markers: List of markers to affect - this may or may not be the scene markers list, | ||||
| * so don't assume anything. | * so don't assume anything. | ||||
| * \param scene: Current scene (for getting current frame) | * \param scene: Current scene (for getting current frame) | ||||
| * \param mode: (TfmMode) transform mode that this transform is for | * \param mode: (TfmMode) transform mode that this transform is for | ||||
| * \param value: From the transform code, this is ``t->vec[0]`` | * \param value: From the transform code, this is `t->vec[0]` | ||||
| * (which is delta transform for grab/extend, and scale factor for scale) | * (which is delta transform for grab/extend, and scale factor for scale) | ||||
| * \param side: (B/L/R) for 'extend' functionality, which side of current frame to use | * \param side: (B/L/R) for 'extend' functionality, which side of current frame to use | ||||
| */ | */ | ||||
| int ED_markers_post_apply_transform( | int ED_markers_post_apply_transform( | ||||
| ListBase *markers, Scene *scene, int mode, float value, char side) | ListBase *markers, Scene *scene, int mode, float value, char side) | ||||
| { | { | ||||
| TimeMarker *marker; | TimeMarker *marker; | ||||
| float cfra = (float)CFRA; | float cfra = (float)CFRA; | ||||
| ▲ Show 20 Lines • Show All 1,587 Lines • Show Last 20 Lines | |||||