diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-23 08:08:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-23 08:08:02 +0300 |
commit | 3117de3a733e70959819ed6c1a76efddb879e269 (patch) | |
tree | 2e9953f33eecdf5d9113b11fb312eb54ca67d6f0 /release/scripts/startup/bl_operators/file.py | |
parent | 32301a070006a07abe76394a8a5d24337a30f74b (diff) |
Cleanup: import operator class directly for Python operators
Diffstat (limited to 'release/scripts/startup/bl_operators/file.py')
-rw-r--r-- | release/scripts/startup/bl_operators/file.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_operators/file.py b/release/scripts/startup/bl_operators/file.py index 78a7ead71ca..672a4170325 100644 --- a/release/scripts/startup/bl_operators/file.py +++ b/release/scripts/startup/bl_operators/file.py @@ -19,7 +19,10 @@ # <pep8 compliant> import bpy -from bpy.types import Operator +from bpy.types import ( + Operator, + OperatorFileListElement, +) from bpy.props import ( BoolProperty, CollectionProperty, @@ -38,7 +41,7 @@ class WM_OT_previews_batch_generate(Operator): # ----------- # File props. files: CollectionProperty( - type=bpy.types.OperatorFileListElement, + type=OperatorFileListElement, options={'HIDDEN', 'SKIP_SAVE'}, ) @@ -148,7 +151,7 @@ class WM_OT_previews_batch_clear(Operator): # ----------- # File props. files: CollectionProperty( - type=bpy.types.OperatorFileListElement, + type=OperatorFileListElement, options={'HIDDEN', 'SKIP_SAVE'}, ) |