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:
authorAlfredo de Greef <eeshlo@yahoo.com>2004-12-05 06:51:01 +0300
committerAlfredo de Greef <eeshlo@yahoo.com>2004-12-05 06:51:01 +0300
commit263479dfbadc4e99354e0cf54fb6fa21c900fce5 (patch)
tree9834b28d9a9d3fac7f27776eef602dfc5f831c76 /source/blender/yafray/intern/export_File.cpp
parentef971de66d946d69114c817b4340b82316c4d108 (diff)
Added support for the extra texture channels.
Diffstat (limited to 'source/blender/yafray/intern/export_File.cpp')
-rwxr-xr-xsource/blender/yafray/intern/export_File.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/yafray/intern/export_File.cpp b/source/blender/yafray/intern/export_File.cpp
index e80c5362baf..18874a36355 100755
--- a/source/blender/yafray/intern/export_File.cpp
+++ b/source/blender/yafray/intern/export_File.cpp
@@ -657,7 +657,7 @@ void yafrayFileRender_t::writeShader(const string &shader_name, Material* matr,
xmlfile << ostr.str();
}
- for (int m2=0;m2<8;m2++) {
+ for (int m2=0;m2<MAX_MTEX;m2++) {
if (matr->septex & (1<<m2)) continue;// all active channels
@@ -807,7 +807,7 @@ void yafrayFileRender_t::writeMaterialsAndModulators()
Material* matr = blendmat->second;
// mapper(s)
- for (int m=0;m<8;m++)
+ for (int m=0;m<MAX_MTEX;m++)
{
if (matr->septex & (1<<m)) continue;// all active channels
@@ -1650,7 +1650,7 @@ bool yafrayFileRender_t::writeWorld()
if (world==NULL) return false;
- for (int i=0;i<6;i++) {
+ for (int i=0;i<MAX_MTEX;i++) {
MTex* wtex = world->mtex[i];
if (!wtex) continue;
Image* wimg = wtex->tex->ima;