diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-12-12 13:38:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-12-12 13:38:43 +0300 |
commit | 09e4fa8f6a2e46631a74ab74cecc319349b67313 (patch) | |
tree | f4c21efcac941d45e881264f8b2b7655c0e41156 /release/scripts/xfig_export.py | |
parent | 848d3ae61778903675c21ffb850c9e93a29c6228 (diff) |
simple change, made
Changed...
me = NMesh.GetRaw(ob.data.name)
To
me = NMesh.GetRaw(ob.getData(name_only=1))
The line above converts the entire mesh to a python thick wrapper just to get its name, then only to that that same mesh again??
A lot of older scripts did this but theres no reason to do it.
in most (all?) cases..
me = ob.data - should be ok, but theres a subtle difference and I dont want to break anything.
xfig_export, xsi_export and videoscape_export need error checking too.
Diffstat (limited to 'release/scripts/xfig_export.py')
-rw-r--r-- | release/scripts/xfig_export.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/xfig_export.py b/release/scripts/xfig_export.py index 94284120f34..ca6f571e244 100644 --- a/release/scripts/xfig_export.py +++ b/release/scripts/xfig_export.py @@ -71,7 +71,7 @@ def getmaxmin(): """Getting the extremes of the mesh to be exported""" objects = Blender.Object.GetSelected() objname = objects[0].name - meshname = objects[0].data.name + meshname = objects[0].getData(name_only=1) mesh = Blender.NMesh.GetRaw(meshname) obj = Blender.Object.Get(objname) #initializing max-min find. @@ -226,7 +226,7 @@ def figdata(expview): """Prints all the xfig data (no header)""" objects = Blender.Object.GetSelected() objname = objects[0].name - meshname = objects[0].data.name + meshname = objects[0].getData(name_only=1) mesh = Blender.NMesh.GetRaw(meshname) obj = Blender.Object.Get(objname) facenumber = len(mesh.faces) |