[Bf-extensions-cvs] [91df04d] master: Remove unused operator argument

Campbell Barton noreply at git.blender.org
Sat Nov 7 15:36:24 CET 2015


Commit: 91df04dea5632f6b613a278f858b8af71c3713f2
Author: Campbell Barton
Date:   Sun Nov 8 01:08:40 2015 +1100
Branches: master
https://developer.blender.org/rBA91df04dea5632f6b613a278f858b8af71c3713f2

Remove unused operator argument

===================================================================

M	io_scene_obj/__init__.py
M	io_scene_obj/export_obj.py
M	io_scene_obj/import_obj.py

===================================================================

diff --git a/io_scene_obj/__init__.py b/io_scene_obj/__init__.py
index 3b681fd..34b936f 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 9c8039d..6a9b292 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 9f5200e..f5890d6 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.



More information about the Bf-extensions-cvs mailing list