diff options
author | Chris Want <cwant@ualberta.ca> | 2006-05-19 00:47:39 +0400 |
---|---|---|
committer | Chris Want <cwant@ualberta.ca> | 2006-05-19 00:47:39 +0400 |
commit | 594b0bf041cc9fb4dbb3445ad1333930df700829 (patch) | |
tree | 454b5ff33b22ed821f2ac62c978bcc247d0f617e /release/scripts/vrml97_export.py | |
parent | 18bcef6777a71657e9b90a07d88e55a7d702fb19 (diff) |
Two issues:
* a misuse of the Mesh module meant that I kept creating new
meshes each time the script was run;
* the commas in the vertex color export looked weird.
Diffstat (limited to 'release/scripts/vrml97_export.py')
-rw-r--r-- | release/scripts/vrml97_export.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/release/scripts/vrml97_export.py b/release/scripts/vrml97_export.py index d2fa0a2f771..fca06b83016 100644 --- a/release/scripts/vrml97_export.py +++ b/release/scripts/vrml97_export.py @@ -473,8 +473,7 @@ class VRML2Export: sided={} # 'one':cnt , 'two':cnt vColors={} # 'multi':1 - me = Mesh.New() - me.getFromObject(ob.name) + me = ob.getData(mesh = 1) self.classifyMesh(me, ob) if (self.collnode): @@ -740,7 +739,7 @@ class VRML2Export: for i in range(len(me.verts)): aColor = self.rgbToFS(cols[i]) - self.writeUnindented("%s\n, " % aColor) + self.writeUnindented("%s\n" % aColor) self.writeIndented("\n", 0) self.writeIndented("]\n",-1) |