bugfix [#23068] Image editor: Update Automatically not updating the compositor.

[#23637] Replacing an image used in the compositor crashes
       [#23343] changes in images doesn't update compositor image nodes
This commit is contained in:
2010-09-13 06:08:26 +00:00
parent 18702a9eef
commit bd5a62cfcb
6 changed files with 44 additions and 55 deletions

View File

@@ -69,6 +69,7 @@
#include "BKE_main.h"
#include "BKE_packedFile.h"
#include "BKE_scene.h"
#include "BKE_node.h"
//XXX #include "BIF_editseq.h"
@@ -1447,6 +1448,17 @@ void BKE_image_signal(Image *ima, ImageUser *iuser, int signal)
}
break;
}
/* dont use notifiers because they are not 100% sure to succseed
* this also makes sure all scenes are accounted for. */
{
Scene *scene;
for(scene= G.main->scene.first; scene; scene= scene->id.next) {
if(scene->nodetree) {
NodeTagIDChanged(scene->nodetree, &ima->id);
}
}
}
}
/* if layer or pass changes, we need an index for the imbufs list */