diff options
Diffstat (limited to 'source/blender/blenkernel/intern/scene.c')
-rw-r--r-- | source/blender/blenkernel/intern/scene.c | 53 |
1 files changed, 5 insertions, 48 deletions
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index 1611116f0af..c4eefb16348 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -29,6 +29,11 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file blender/blenkernel/intern/scene.c + * \ingroup bke + */ + + #include <stddef.h> #include <stdio.h> #include <string.h> @@ -827,54 +832,6 @@ char *scene_find_last_marker_name(Scene *scene, int frame) return best_marker ? best_marker->name : NULL; } -/* markers need transforming from different parts of the code so have - * a generic function to do this */ -int scene_marker_tfm_translate(Scene *scene, int delta, int flag) -{ - TimeMarker *marker; - int tot= 0; - - for (marker= scene->markers.first; marker; marker= marker->next) { - if ((marker->flag & flag) == flag) { - marker->frame += delta; - tot++; - } - } - - return tot; -} - -int scene_marker_tfm_extend(Scene *scene, int delta, int flag, int frame, char side) -{ - TimeMarker *marker; - int tot= 0; - - for (marker= scene->markers.first; marker; marker= marker->next) { - if ((marker->flag & flag) == flag) { - if((side=='L' && marker->frame < frame) || (side=='R' && marker->frame >= frame)) { - marker->frame += delta; - tot++; - } - } - } - - return tot; -} - -int scene_marker_tfm_scale(struct Scene *scene, float value, int flag) -{ - TimeMarker *marker; - int tot= 0; - - for (marker= scene->markers.first; marker; marker= marker->next) { - if ((marker->flag & flag) == flag) { - marker->frame= CFRA + (int)floorf(((float)(marker->frame - CFRA) * value) + 0.5f); - tot++; - } - } - - return tot; -} Base *scene_add_base(Scene *sce, Object *ob) { |