diff options
author | Ton Roosendaal <ton@blender.org> | 2004-12-05 00:49:02 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-12-05 00:49:02 +0300 |
commit | aad31875d7224c58b1d94bd716bb5aab295fc8cb (patch) | |
tree | 8ef506c415f32ce8c5c5116c9f725f4369468852 /source/blender/blenloader/intern/writefile.c | |
parent | 8d4782f7297c4a703b23b6b5383c0d76e4907903 (diff) |
Special bf-committers request; Lamp/World/Material now each have 10
channels to link texture to.
The amount of code changes seems large, but is mostly getting rind of
hardcoded values (6 and 8) for channels, replacing it with MAX_MTEX.
Further did some fixes;
- Ipo for Lamp showed too many mapping channels
- Texture MapTo buttons for lamp missed the slider to blend texture color
- Lamp texture mapping "View" only worked for Spot, now it uses lamp-
view vector for all types. (Nice for projections!)
Diffstat (limited to 'source/blender/blenloader/intern/writefile.c')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 4a2dfd4889b..a325749dede 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -960,7 +960,7 @@ static void write_materials(WriteData *wd, ListBase *idbase) /* write LibData */ writestruct(wd, ID_MA, "Material", 1, ma); - for(a=0; a<8; a++) { + for(a=0; a<MAX_MTEX; a++) { if(ma->mtex[a]) writestruct(wd, DATA, "MTex", 1, ma->mtex[a]); } @@ -984,7 +984,7 @@ static void write_worlds(WriteData *wd, ListBase *idbase) /* write LibData */ writestruct(wd, ID_WO, "World", 1, wrld); - for(a=0; a<8; a++) { + for(a=0; a<MAX_MTEX; a++) { if(wrld->mtex[a]) writestruct(wd, DATA, "MTex", 1, wrld->mtex[a]); } @@ -1006,7 +1006,7 @@ static void write_lamps(WriteData *wd, ListBase *idbase) writestruct(wd, ID_LA, "Lamp", 1, la); /* direct data */ - for(a=0; a<8; a++) { + for(a=0; a<MAX_MTEX; a++) { if(la->mtex[a]) writestruct(wd, DATA, "MTex", 1, la->mtex[a]); } |