Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2015-11-07 17:34:46 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2015-11-07 17:34:46 +0300
commitcb4c1d4ef3112476b55ebacc905370c2d78dc8d5 (patch)
tree6308239ac37060e63643afc7d765a1a37f4c5044 /io_anim_bvh/__init__.py
parent91715100aa8145edc21e5448e79b19ee88603662 (diff)
BVH import: better error handling & reporting
Errors are now reported to the user via Operator.report(), instead of either being printed to the terminal or raised as an exception. Updating the scene is now performed in separate functions, to make it easier to control execution flow in the case of broken BVH files. The 'filepath' argument to the import_bvh.load() function is no longer optional, and all following arguments are now keyword-only. Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1609
Diffstat (limited to 'io_anim_bvh/__init__.py')
-rw-r--r--io_anim_bvh/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_anim_bvh/__init__.py b/io_anim_bvh/__init__.py
index 85534048..c871dba5 100644
--- a/io_anim_bvh/__init__.py
+++ b/io_anim_bvh/__init__.py
@@ -139,7 +139,7 @@ class ImportBVH(bpy.types.Operator, ImportHelper, ImportBVHOrientationHelper):
keywords["global_matrix"] = global_matrix
from . import import_bvh
- return import_bvh.load(self, context, **keywords)
+ return import_bvh.load(context, report=self.report, **keywords)
class ExportBVH(bpy.types.Operator, ExportHelper):