Commit: bf547a19837f112c4846c236427cd36bedf9ed6a
Author: Sergey Sharybin
Date: Tue Feb 25 13:49:38 2014 +0600
https://developer.blender.org/rBbf547a19837f112c4846c236427cd36bedf9ed6a
Fix T38806: Proxy file changes don't update until Blender's restart
===================================================================
M source/blender/makesrna/intern/rna_sequencer.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_sequencer.c
b/source/blender/makesrna/intern/rna_sequencer.c
index 2506f57..97f7ee3 100644
--- a/source/blender/makesrna/intern/rna_sequencer.c
+++ b/source/blender/makesrna/intern/rna_sequencer.c
@@ -76,6 +76,8 @@ EnumPropertyItem sequence_modifier_type_items[] = {
#include "WM_api.h"
#include "WM_types.h"
+#include "IMB_imbuf.h"
+
typedef struct SequenceSearchData {
Sequence *seq;
void *data;
@@ -601,6 +603,10 @@ static void rna_Sequence_proxy_filepath_set(PointerRNA
*ptr, const char *value)
{
StripProxy *proxy = (StripProxy *)(ptr->data);
BLI_split_dirfile(value, proxy->dir, proxy->file, sizeof(proxy->dir),
sizeof(proxy->file));
+ if (proxy->anim) {
+ IMB_free_anim(proxy->anim);
+ proxy->anim = NULL;
+ }
}
static void rna_Sequence_proxy_filepath_get(PointerRNA *ptr, char *value)
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs