[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11640] branches/soc-2007-maike/source/ blender/src/glsl_material.c: Colorband creation bugfix
Miguel Torres Lima
torreslima at gmail.com
Fri Aug 17 16:51:27 CEST 2007
Revision: 11640
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11640
Author: maike
Date: 2007-08-17 16:51:27 +0200 (Fri, 17 Aug 2007)
Log Message:
-----------
Colorband creation bugfix
Modified Paths:
--------------
branches/soc-2007-maike/source/blender/src/glsl_material.c
Modified: branches/soc-2007-maike/source/blender/src/glsl_material.c
===================================================================
--- branches/soc-2007-maike/source/blender/src/glsl_material.c 2007-08-17 14:51:04 UTC (rev 11639)
+++ branches/soc-2007-maike/source/blender/src/glsl_material.c 2007-08-17 14:51:27 UTC (rev 11640)
@@ -110,10 +110,10 @@
static void glsl_mat_init_cb(GLSL_Material material, Material *mat)
{
- if(mat->mode & MA_RAMP_COL && mat->ramp_col)
+ if(mat->mode & MA_RAMP_COL && mat->ramp_col && !material->diff_ramp)
material->add_diff_cb(material, mat);
- if(mat->mode & MA_RAMP_SPEC && mat->ramp_spec)
+ if(mat->mode & MA_RAMP_SPEC && mat->ramp_spec && !material->spec_ramp)
material->add_spec_cb(material, mat);
}
More information about the Bf-blender-cvs
mailing list