diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-07-03 13:01:43 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-07-03 13:01:43 +0400 |
commit | 2dc06f6d50d14a97ff0c37f88b6979d18a0fd279 (patch) | |
tree | 60728ddc2bb420bcf11901e27a11a677276cb889 /io_shape_mdd | |
parent | 842985a49773634076d45f845957216006fc683e (diff) |
Style edit (mostly), use """ for docstrings (not ''').
Diffstat (limited to 'io_shape_mdd')
-rw-r--r-- | io_shape_mdd/__init__.py | 4 | ||||
-rw-r--r-- | io_shape_mdd/export_mdd.py | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/io_shape_mdd/__init__.py b/io_shape_mdd/__init__.py index 44a1dfd2..b36bebc0 100644 --- a/io_shape_mdd/__init__.py +++ b/io_shape_mdd/__init__.py @@ -45,7 +45,7 @@ from bpy_extras.io_utils import ExportHelper, ImportHelper class ImportMDD(bpy.types.Operator, ImportHelper): - '''Import MDD vertex keyframe file to shape keys''' + """Import MDD vertex keyframe file to shape keys""" bl_idname = "import_shape.mdd" bl_label = "Import MDD" bl_options = {'UNDO'} @@ -87,7 +87,7 @@ class ImportMDD(bpy.types.Operator, ImportHelper): class ExportMDD(bpy.types.Operator, ExportHelper): - '''Animated mesh to MDD vertex keyframe file''' + """Animated mesh to MDD vertex keyframe file""" bl_idname = "export_shape.mdd" bl_label = "Export MDD" diff --git a/io_shape_mdd/export_mdd.py b/io_shape_mdd/export_mdd.py index 9b0ad8b6..d078083a 100644 --- a/io_shape_mdd/export_mdd.py +++ b/io_shape_mdd/export_mdd.py @@ -35,18 +35,18 @@ from struct import pack def zero_file(filepath): - ''' + """ If a file fails, this replaces it with 1 char, better not remove it? - ''' + """ file = open(filepath, 'w') file.write('\n') # apparently macosx needs some data in a blank file? file.close() def check_vertcount(mesh, vertcount): - ''' + """ check and make sure the vertcount is consistent throughout the frame range - ''' + """ if len(mesh.vertices) != vertcount: raise Exception('Error, number of verts has changed during animation, cannot export') |