forked from bartvdbraak/blender
According to Amir Ebrahimi, fbx vertex color is supposed to be between 0.0 and 1.0 rather then 0-255
At the moment I dont have a way to test this.
This commit is contained in:
parent
fec8107281
commit
c12149cf26
@ -1446,13 +1446,13 @@ def write(filename, batch_objects = None, \
|
||||
for f in me.faces:
|
||||
for col in f.col:
|
||||
if i==-1:
|
||||
file.write('%i,%i,%i,255' % (col[0], col[1], col[2]))
|
||||
file.write('%.4f,%.4f,%.4f,1' % (col[0]/255.0, col[1]/255.0, col[2]/255.0))
|
||||
i=0
|
||||
else:
|
||||
if i==7:
|
||||
file.write('\n\t\t\t\t')
|
||||
i=0
|
||||
file.write(',%i,%i,%i,255' % (col[0], col[1], col[2]))
|
||||
file.write(',%.4f,%.4f,%.4f,1' % (col[0]/255.0, col[1]/255.0, col[2]/255.0))
|
||||
i+=1
|
||||
ii+=1 # One more Color
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user