diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-10-16 07:17:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-10-16 07:17:54 +0300 |
commit | c9d3243f2b09dcc836f8bbd373df7da44d069476 (patch) | |
tree | 95223c8384fc89a226920b511b3d9cffc3b99415 /source | |
parent | 2f35217849c82af87e35a0916e7d70d0d8e2dbaf (diff) |
Cleanup: simplify BLI_stringdec use
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c index 875347b39ec..3ffd03dc3be 100644 --- a/source/blender/blenkernel/intern/image.c +++ b/source/blender/blenkernel/intern/image.c @@ -4444,14 +4444,7 @@ float *BKE_image_get_float_pixels_for_frame(struct Image *image, int frame) int BKE_image_sequence_guess_offset(Image *image) { - unsigned short numlen; - char head[FILE_MAX], tail[FILE_MAX]; - char num[FILE_MAX] = {0}; - - BLI_stringdec(image->name, head, tail, &numlen); - BLI_strncpy(num, image->name + strlen(head), numlen + 1); - - return atoi(num); + return BLI_stringdec(image->name, NULL, NULL, NULL); } bool BKE_image_has_anim(Image *ima) |