[Bf-extensions-cvs] [8b80d24] master: Cleanup: remove unused operator args
Campbell Barton
noreply at git.blender.org
Tue Apr 26 12:55:58 CEST 2016
Commit: 8b80d24da9e99b51cafb3533d0b4351b358fcf75
Author: Campbell Barton
Date: Tue Apr 26 20:58:09 2016 +1000
Branches: master
https://developer.blender.org/rBA8b80d24da9e99b51cafb3533d0b4351b358fcf75
Cleanup: remove unused operator args
===================================================================
M io_shape_mdd/__init__.py
M io_shape_mdd/export_mdd.py
M io_shape_mdd/import_mdd.py
===================================================================
diff --git a/io_shape_mdd/__init__.py b/io_shape_mdd/__init__.py
index d3e4c58..beef8d4 100644
--- a/io_shape_mdd/__init__.py
+++ b/io_shape_mdd/__init__.py
@@ -82,7 +82,7 @@ class ImportMDD(bpy.types.Operator, ImportHelper):
keywords = self.as_keywords(ignore=("filter_glob",))
from . import import_mdd
- return import_mdd.load(self, context, **keywords)
+ return import_mdd.load(context, **keywords)
class ExportMDD(bpy.types.Operator, ExportHelper):
@@ -138,7 +138,7 @@ class ExportMDD(bpy.types.Operator, ExportHelper):
keywords = self.as_keywords(ignore=("check_existing", "filter_glob"))
from . import export_mdd
- return export_mdd.save(self, context, **keywords)
+ return export_mdd.save(context, **keywords)
def menu_func_import(self, context):
diff --git a/io_shape_mdd/export_mdd.py b/io_shape_mdd/export_mdd.py
index aaa2f6a..e7fda3a 100644
--- a/io_shape_mdd/export_mdd.py
+++ b/io_shape_mdd/export_mdd.py
@@ -51,7 +51,7 @@ def check_vertcount(mesh, vertcount):
raise Exception('Error, number of verts has changed during animation, cannot export')
-def save(operator, context, filepath="", frame_start=1, frame_end=300, fps=25.0):
+def save(context, filepath="", frame_start=1, frame_end=300, fps=25.0):
"""
Blender.Window.WaitCursor(1)
diff --git a/io_shape_mdd/import_mdd.py b/io_shape_mdd/import_mdd.py
index 8caedcc..3a24848 100644
--- a/io_shape_mdd/import_mdd.py
+++ b/io_shape_mdd/import_mdd.py
@@ -80,7 +80,7 @@ def obj_update_frame(file, scene, obj, start, fr, step):
obj.data.update()
-def load(operator, context, filepath, frame_start=0, frame_step=1):
+def load(context, filepath, frame_start=0, frame_step=1):
scene = context.scene
obj = context.object
More information about the Bf-extensions-cvs
mailing list