Small fix: the compositing "Preview" option in UV/Image editor should only

work when compositing output is shown.
This commit is contained in:
Ton Roosendaal 2006-06-10 15:18:47 +00:00
parent 29d393eb1f
commit 3d47bb56fa

@ -65,6 +65,7 @@
#include "BKE_colortools.h"
#include "BKE_utildefines.h"
#include "BKE_global.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_mesh.h"
#include "BKE_node.h"
@ -151,6 +152,9 @@ static void setcloneimage()
static int image_preview_active(ScrArea *sa, float *xim, float *yim)
{
SpaceImage *sima= sa->spacedata.first;
/* only when compositor shows, and image handler set */
if(sima->image == (Image *)find_id("IM", "Compositor")) {
short a;
for(a=0; a<SPACE_MAXHANDLER; a+=2) {
@ -160,6 +164,7 @@ static int image_preview_active(ScrArea *sa, float *xim, float *yim)
return 1;
}
}
}
return 0;
}