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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-09-04 04:27:05 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-09-04 04:27:05 +0400
commita7348dd43ee764d11cb0db66ca054c979c3b6bfe (patch)
tree3db0dc26033e349238563bf73d04580b7cc0e58d /source/blender/yafray/intern/export_File.cpp
parent961a26d50058de81ca27a9465320c0177e5eeeb4 (diff)
Bugfix: yafray export crash if new hsv texture blend types were
used, the code here needed to be updated.
Diffstat (limited to 'source/blender/yafray/intern/export_File.cpp')
-rw-r--r--source/blender/yafray/intern/export_File.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/yafray/intern/export_File.cpp b/source/blender/yafray/intern/export_File.cpp
index f8bbdad5f65..f42e00daf6d 100644
--- a/source/blender/yafray/intern/export_File.cpp
+++ b/source/blender/yafray/intern/export_File.cpp
@@ -881,7 +881,7 @@ void yafrayFileRender_t::writeShader(const string &shader_name, Material* matr,
ostr << "\t\t<input value=\"" << shader_name << "_map" << m2 << "\" />\n";
// blendtype, would have been nice if the order would have been the same as for ramps...
- const string blendtype[9] = {"mix", "mul", "add", "sub", "divide", "darken", "difference", "lighten", "screen"};
+ const string blendtype[MTEX_NUM_BLENDTYPES] = {"mix", "mul", "add", "sub", "divide", "darken", "difference", "lighten", "screen", "hue", "sat", "val", "color"};
ostr << "\t\t<mode value=\"" << blendtype[(int)mtex->blendtype] << "\" />\n";
// texture color (for use with MUL and/or no_rgb etc..)