[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48378] trunk/blender/source/blender/ blenkernel/intern/image.c: fix for crash in python getting the image size for a sequence.
Campbell Barton
ideasman42 at gmail.com
Thu Jun 28 17:34:27 CEST 2012
Revision: 48378
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48378
Author: campbellbarton
Date: 2012-06-28 15:34:21 +0000 (Thu, 28 Jun 2012)
Log Message:
-----------
fix for crash in python getting the image size for a sequence.
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/image.c
Modified: trunk/blender/source/blender/blenkernel/intern/image.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/image.c 2012-06-28 15:09:24 UTC (rev 48377)
+++ trunk/blender/source/blender/blenkernel/intern/image.c 2012-06-28 15:34:21 UTC (rev 48378)
@@ -2851,7 +2851,7 @@
if (ima->source == IMA_SRC_SEQUENCE) {
char head[FILE_MAX], tail[FILE_MAX];
unsigned short numlen;
- int frame = iuser->framenr;
+ int frame = iuser ? iuser->framenr : ima->lastframe;
BLI_stringdec(filepath, head, tail, &numlen);
BLI_stringenc(filepath, head, tail, numlen, frame);
More information about the Bf-blender-cvs
mailing list