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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-03-23 08:08:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-23 08:08:02 +0300
commit3117de3a733e70959819ed6c1a76efddb879e269 (patch)
tree2e9953f33eecdf5d9113b11fb312eb54ca67d6f0 /release/scripts/startup/bl_operators/file.py
parent32301a070006a07abe76394a8a5d24337a30f74b (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.py9
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'},
)