diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-10-04 12:56:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-10-04 12:56:57 +0400 |
commit | b63d9bcaabe646e72a2369dd36992aea2094d1df (patch) | |
tree | 7815432a38a0429829be50a705339c0fcf3cf8bb /io_scene_obj | |
parent | 8aa1b14c4485a3058bf332d2389bdef289256dee (diff) |
fix for various errors in scripts
Diffstat (limited to 'io_scene_obj')
-rw-r--r-- | io_scene_obj/__init__.py | 12 | ||||
-rw-r--r-- | io_scene_obj/export_obj.py | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/io_scene_obj/__init__.py b/io_scene_obj/__init__.py index c7fe5703..4251404e 100644 --- a/io_scene_obj/__init__.py +++ b/io_scene_obj/__init__.py @@ -254,17 +254,17 @@ class ExportOBJ(bpy.types.Operator, ExportHelper): description="Convert all faces to triangles", default=False, ) - use_vertex_groups = BoolProperty( - name="Polygroups", - description="", - default=False, - ) use_nurbs = BoolProperty( - name="Nurbs", + name="Write Nurbs", description="Write nurbs curves as OBJ nurbs rather then " "converting to geometry", default=False, ) + use_vertex_groups = BoolProperty( + name="Polygroups", + description="", + default=False, + ) # grouping group use_blen_objects = BoolProperty( diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py index e115b8d3..b5cf778e 100644 --- a/io_scene_obj/export_obj.py +++ b/io_scene_obj/export_obj.py @@ -147,7 +147,7 @@ def test_nurbs_compat(ob): return False -def write_nurb(file, ob, ob_mat): +def write_nurb(fw, ob, ob_mat): tot_verts = 0 cu = ob.data @@ -321,7 +321,7 @@ def write_file(filepath, objects, scene, # Nurbs curve support if EXPORT_CURVE_AS_NURBS and test_nurbs_compat(ob): ob_mat = EXPORT_GLOBAL_MATRIX * ob_mat - totverts += write_nurb(file, ob, ob_mat) + totverts += write_nurb(fw, ob, ob_mat) continue # END NURBS |