Support GPU image auto_refresh also for movie (was for sequence only).

This commit is contained in:
Benoit Bolsee
2010-02-13 21:24:13 +00:00
parent 36520e20c7
commit ce26d457ba
2 changed files with 8 additions and 0 deletions

View File

@@ -432,6 +432,10 @@
<Filter
Name="internal"
>
<File
RelativePath="..\..\..\source\blender\python\intern\bpy.h"
>
</File>
<File
RelativePath="..\..\..\source\blender\python\intern\bpy_app.h"
>

View 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) {