[Bf-blender-cvs] [c9d3243] master: Cleanup: simplify BLI_stringdec use
Campbell Barton
noreply at git.blender.org
Fri Oct 16 06:25:01 CEST 2015
Commit: c9d3243f2b09dcc836f8bbd373df7da44d069476
Author: Campbell Barton
Date: Fri Oct 16 15:17:54 2015 +1100
Branches: master
https://developer.blender.org/rBc9d3243f2b09dcc836f8bbd373df7da44d069476
Cleanup: simplify BLI_stringdec use
===================================================================
M source/blender/blenkernel/intern/image.c
===================================================================
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index 875347b..3ffd03d 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)
More information about the Bf-blender-cvs
mailing list