diff options
author | Ton Roosendaal <ton@blender.org> | 2006-08-09 16:36:28 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-08-09 16:36:28 +0400 |
commit | 6ca354f6600b570f1243661c01a64bee02ff12f1 (patch) | |
tree | fa552558d96888a83b0e52e1ffa45de14830f868 /source | |
parent | 567f1bef144da9577babc0094a9892be5987d2d4 (diff) |
Bugfix #4811
Videoscape export wrote color value wrong on little endian systems,
when no material was assigned to object (default color).
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/exotic.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/exotic.c b/source/blender/blenkernel/intern/exotic.c index 198d0c2e222..5009ea9b987 100644 --- a/source/blender/blenkernel/intern/exotic.c +++ b/source/blender/blenkernel/intern/exotic.c @@ -2579,7 +2579,6 @@ static void write_videoscape_mesh(Object *ob, char *str) } kleur[0]= 0x00C0C0C0; - if(G.order==L_ENDIAN) SWITCH_INT(kleur[0]); cp= (char *)kleur; for(a=0; a<ob->totcol; a++, cp+=4) { @@ -2590,11 +2589,10 @@ static void write_videoscape_mesh(Object *ob, char *str) cp[1]= (unsigned char) (255.0*ma->b); cp[2]= (unsigned char) (255.0*ma->g); cp[3]= (unsigned char) (255.0*ma->r); + if(G.order==L_ENDIAN) SWITCH_INT(kleur[a]); } else kleur[a]= 0x00C0C0C0; - if(G.order==L_ENDIAN) SWITCH_INT(kleur[a]); - if(a>30) break; } |