[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56316] trunk/blender/source/blender/ render/intern/source/imagetexture.c: Fix 35091: Blender internal does not render face texture alpha
Sergey Sharybin
sergey.vfx at gmail.com
Fri Apr 26 16:32:07 CEST 2013
Revision: 56316
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56316
Author: nazgul
Date: 2013-04-26 14:32:06 +0000 (Fri, 26 Apr 2013)
Log Message:
-----------
Fix 35091: Blender internal does not render face texture alpha
Issue was introduced in svn rev54374.
Now made it so image's flag from imagewrap*() argument
is checked instead of using tex->ima, which seems how
this functions were supposed to work.
Doublechecking on this change is really welcome!
Revision Links:
--------------
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54374
Modified Paths:
--------------
trunk/blender/source/blender/render/intern/source/imagetexture.c
Modified: trunk/blender/source/blender/render/intern/source/imagetexture.c
===================================================================
--- trunk/blender/source/blender/render/intern/source/imagetexture.c 2013-04-26 13:47:57 UTC (rev 56315)
+++ trunk/blender/source/blender/render/intern/source/imagetexture.c 2013-04-26 14:32:06 UTC (rev 56316)
@@ -224,7 +224,7 @@
}
/* keep this before interpolation [#29761] */
- if ((tex->imaflag & TEX_USEALPHA) && tex->ima && (tex->ima->flag & IMA_IGNORE_ALPHA) == 0) {
+ if ((tex->imaflag & TEX_USEALPHA) && (tex->ima->flag & IMA_IGNORE_ALPHA) == 0) {
if ((tex->imaflag & TEX_CALCALPHA) == 0) {
texres->talpha = TRUE;
}
@@ -1109,7 +1109,7 @@
/* mipmap test */
image_mipmap_test(tex, ibuf);
- if ((tex->imaflag & TEX_USEALPHA) && tex->ima && (tex->ima->flag & IMA_IGNORE_ALPHA) == 0) {
+ if ((tex->imaflag & TEX_USEALPHA) && (ima->flag & IMA_IGNORE_ALPHA) == 0) {
if ((tex->imaflag & TEX_CALCALPHA) == 0)
texres->talpha = 1;
}
@@ -1526,7 +1526,7 @@
/* mipmap test */
image_mipmap_test(tex, ibuf);
- if ((tex->imaflag & TEX_USEALPHA) && tex->ima && (tex->ima->flag & IMA_IGNORE_ALPHA) == 0) {
+ if ((tex->imaflag & TEX_USEALPHA) && (tex->ima->flag & IMA_IGNORE_ALPHA) == 0) {
if ((tex->imaflag & TEX_CALCALPHA) == 0) {
texres->talpha = TRUE;
}
More information about the Bf-blender-cvs
mailing list