Python API

----------
tex->image attribute setter needed call to BKE_image_signal(), otherwise
image would not appear when render.
This commit is contained in:
Ken Hughes
2007-12-30 16:41:31 +00:00
parent 5be2e5aa98
commit 65164a9e41

View File

@@ -1,5 +1,5 @@
/*
* $Id: Texture.c 12535 2007-11-09 10:29:19Z campbellbarton $
* $Id$
*
* ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
*
@@ -32,6 +32,7 @@
#include "Texture.h" /*This must come first*/
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_main.h"
#include "BKE_idprop.h"
#include "BKE_library.h"
@@ -1572,6 +1573,7 @@ static int Texture_setImage( BPy_Texture * self, PyObject * value )
}
self->texture->ima = blimg;
BKE_image_signal(blimg, &self->texture->iuser, IMA_SIGNAL_RELOAD );
id_us_plus( &blimg->id );
return 0;