Support GPU image auto_refresh also for movie (was for sequence only).
authorBenoit Bolsee <benoit.bolsee@online.be>
Sat, 13 Feb 2010 21:24:13 +0000 (21:24 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Sat, 13 Feb 2010 21:24:13 +0000 (21:24 +0000)
projectfiles_vc9/blender/BPY_python/BPY_python.vcproj
source/blender/blenkernel/intern/image.c

index ec9630b065218e9cb0e6ea51bf095e249c576e37..d6703509e52595f7080ebf7cca78c257266363f1 100644 (file)
                        <Filter\r
                                Name="internal"\r
                                >\r
+                               <File\r
+                                       RelativePath="..\..\..\source\blender\python\intern\bpy.h"\r
+                                       >\r
+                               </File>\r
                                <File\r
                                        RelativePath="..\..\..\source\blender\python\intern\bpy_app.h"\r
                                        >\r
index c8785b54c8d5ea3e5cec36b383d938a30a5adb46..d6edb068fa0382996ef3c427074db61f490f5bf8 100644 (file)
@@ -2033,6 +2033,10 @@ static ImBuf *image_get_ibuf_threadsafe(Image *ima, ImageUser *iuser, int *frame
        if(ima->source==IMA_SRC_MOVIE) {
                frame= iuser?iuser->framenr:ima->lastframe;
                ibuf= image_get_ibuf(ima, 0, frame);
+               /* XXX temp stuff? */
+               if(ima->lastframe != frame)
+                       ima->tpageflag |= IMA_TPAGE_REFRESH;
+               ima->lastframe = frame;
        }
        else if(ima->source==IMA_SRC_SEQUENCE) {
                if(ima->type==IMA_TYPE_IMAGE) {