Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2007-12-30 19:41:31 +0300
committerKen Hughes <khughes@pacific.edu>2007-12-30 19:41:31 +0300
commit65164a9e41cac5f39c7ceb0a82f914f2780c244d (patch)
tree06e54e67610ba88df0d0b324352464085e584234 /source/blender/python
parent5be2e5aa9821a1da9cf16d7dd848a17487f68685 (diff)
Python API
---------- tex->image attribute setter needed call to BKE_image_signal(), otherwise image would not appear when render.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/api2_2x/Texture.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Texture.c b/source/blender/python/api2_2x/Texture.c
index 66ed88df8d0..a8b5441acfc 100644
--- a/source/blender/python/api2_2x/Texture.c
+++ b/source/blender/python/api2_2x/Texture.c
@@ -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;