diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-05-12 09:56:40 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-05-12 11:23:24 +0300 |
commit | 8a231185aaf8b5f0753320bdd5de12538c626524 (patch) | |
tree | 5e900ad524d17a9e1ebf44fa3a0cb5713f2c4abd /release/scripts/modules/bpy_extras | |
parent | 8478c71a7b8f75dcf4855747347ba53639e6aac3 (diff) |
Doc: minor fixes
- check for class/static methods assumed nonzero args.
- subclass references and set-flag items are now sorted.
- use 'order' for Py operator mix-ins,
so operator settings don't show in random order.
Diffstat (limited to 'release/scripts/modules/bpy_extras')
-rw-r--r-- | release/scripts/modules/bpy_extras/io_utils.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy_extras/io_utils.py b/release/scripts/modules/bpy_extras/io_utils.py index 1dc6f5b2b2c..32623e2bd25 100644 --- a/release/scripts/modules/bpy_extras/io_utils.py +++ b/release/scripts/modules/bpy_extras/io_utils.py @@ -61,6 +61,12 @@ class ExportHelper: options={'HIDDEN'}, ) + # needed for mix-ins + order = [ + "filepath", + "check_existing", + ] + # subclasses can override with decorator # True == use ext, False == no ext, None == do nothing. check_extension = True @@ -109,6 +115,11 @@ class ImportHelper: subtype='FILE_PATH', ) + # needed for mix-ins + order = [ + "filepath", + ] + def invoke(self, context, event): context.window_manager.fileselect_add(self) return {'RUNNING_MODAL'} @@ -154,6 +165,11 @@ def orientation_helper_factory(name, axis_forward='Y', axis_up='Z'): update=_update_axis_up, ) + members["order"] = [ + "axis_forward", + "axis_up", + ] + return type(name, (object,), members) |