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:
authorCampbell Barton <ideasman42@gmail.com>2009-02-12 04:46:38 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-02-12 04:46:38 +0300
commitc12149cf260e48713e48e452f51f739d60ecce69 (patch)
tree9ce22e773441f21727918b71cec9eca3e564994a
parentfec8107281dcf4fc751805efd0521bf248e6ef03 (diff)
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.
-rw-r--r--release/scripts/export_fbx.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/export_fbx.py b/release/scripts/export_fbx.py
index 6f964118964..730776bf1b8 100644
--- a/release/scripts/export_fbx.py
+++ b/release/scripts/export_fbx.py
@@ -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