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>2007-03-29 18:35:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-03-29 18:35:01 +0400
commitcfdef7a88af35131a1b10af6a2b511f9e0bb5bfb (patch)
treeb6c06e13f2c59a78497feee70755591d0d6c1c05 /release/scripts/export_fbx.py
parent3c5462e660c9cf45d599a874ee226fd5122b2e23 (diff)
ICVS: ----------------------------------------------------------------------
import OBJ dosnt raise a Py Error when no image is given for a material export FBX works much better, tested 179 models and dosnt crash on any now. tested import export with large scene, 375,000 tri's. Mesh.py doc note about UV coords,, editmesh_add minor typo
Diffstat (limited to 'release/scripts/export_fbx.py')
-rw-r--r--release/scripts/export_fbx.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/export_fbx.py b/release/scripts/export_fbx.py
index c4a7ed7d8b2..5f05c3d4347 100644
--- a/release/scripts/export_fbx.py
+++ b/release/scripts/export_fbx.py
@@ -1615,7 +1615,7 @@ Objects: {''')
''' MultiLayer: 0
MultiTake: 1
Shading: Y
- Culling: "CullingOff"hr
+ Culling: "CullingOff"
TypeFlags: "Null"
}''')
@@ -1698,7 +1698,7 @@ Objects: {''')
UV: ''')
i = -1
- ii = 0
+ ii = 0 # Count how many UVs we write
for f in me.faces:
for uv in f.uv:
@@ -1711,11 +1711,11 @@ Objects: {''')
i=0
file.write(',%.6f,%.6f' % tuple(uv))
i+=1
- ii+=1
+ ii+=1 # One more UV
file.write('\n UVIndex: ')
i = -1
- for j in xrange(len(me.faces)):
+ for j in xrange(ii):
if i == -1:
file.write('%i' % j)
i=0