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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to