From 91df04dea5632f6b613a278f858b8af71c3713f2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 8 Nov 2015 01:08:40 +1100 Subject: Remove unused operator argument --- io_scene_obj/__init__.py | 4 ++-- io_scene_obj/export_obj.py | 4 +++- io_scene_obj/import_obj.py | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/io_scene_obj/__init__.py b/io_scene_obj/__init__.py index 3b681fde..34b936f0 100644 --- a/io_scene_obj/__init__.py +++ b/io_scene_obj/__init__.py @@ -144,7 +144,7 @@ class ImportOBJ(bpy.types.Operator, ImportHelper, IOOBJOrientationHelper): import os keywords["relpath"] = os.path.dirname((bpy.data.path_resolve("filepath", False).as_bytes())) - return import_obj.load(self, context, **keywords) + return import_obj.load(context, **keywords) def draw(self, context): layout = self.layout @@ -303,7 +303,7 @@ class ExportOBJ(bpy.types.Operator, ExportHelper, IOOBJOrientationHelper): ).to_4x4()) keywords["global_matrix"] = global_matrix - return export_obj.save(self, context, **keywords) + return export_obj.save(context, **keywords) def menu_func_import(self, context): diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py index 9c8039d7..6a9b2920 100644 --- a/io_scene_obj/export_obj.py +++ b/io_scene_obj/export_obj.py @@ -791,7 +791,9 @@ Currently the exporter lacks these features: """ -def save(operator, context, filepath="", +def save(context, + filepath, + *, use_triangles=False, use_edges=True, use_normals=False, diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py index 9f5200ef..f5890d63 100644 --- a/io_scene_obj/import_obj.py +++ b/io_scene_obj/import_obj.py @@ -859,7 +859,9 @@ def get_float_func(filepath): return float -def load(operator, context, filepath, +def load(context, + filepath, + *, global_clamp_size=0.0, use_smooth_groups=True, use_edges=True, @@ -868,7 +870,7 @@ def load(operator, context, filepath, use_image_search=True, use_groups_as_vgroups=False, relpath=None, - global_matrix=None, + global_matrix=None ): """ Called by the user interface or another script. -- cgit v1.2.3