[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13059] trunk/blender/source/blender/ python/api2_2x/Texture.c: Python API

Ken Hughes khughes at pacific.edu
Sun Dec 30 17:41:31 CET 2007


Revision: 13059
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13059
Author:   khughes
Date:     2007-12-30 17:41:31 +0100 (Sun, 30 Dec 2007)

Log Message:
-----------
Python API
----------
tex->image attribute setter needed call to BKE_image_signal(), otherwise
image would not appear when render.

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/Texture.c

Modified: trunk/blender/source/blender/python/api2_2x/Texture.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Texture.c	2007-12-30 13:30:31 UTC (rev 13058)
+++ trunk/blender/source/blender/python/api2_2x/Texture.c	2007-12-30 16:41:31 UTC (rev 13059)
@@ -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 @@
 	}
 
 	self->texture->ima = blimg;
+	BKE_image_signal(blimg, &self->texture->iuser, IMA_SIGNAL_RELOAD );
 	id_us_plus( &blimg->id );
 
 	return 0;





More information about the Bf-blender-cvs mailing list