diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-26 23:56:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-26 23:56:39 +0300 |
commit | a61480c27103fbf449fd14ea8061b65c29f19eae (patch) | |
tree | 8d626b465ebe17936b7551aa91cc5b9d3b192607 /release/scripts/startup/bl_operators/file.py | |
parent | a3cd57ea8c57c10d4c65ddd51faa6cce14c98e10 (diff) | |
parent | 532c8ac58384309e77791e32ab78f448ad2a76a6 (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'release/scripts/startup/bl_operators/file.py')
-rw-r--r-- | release/scripts/startup/bl_operators/file.py | 149 |
1 files changed, 75 insertions, 74 deletions
diff --git a/release/scripts/startup/bl_operators/file.py b/release/scripts/startup/bl_operators/file.py index 8d947d19a82..cf03b4fccdb 100644 --- a/release/scripts/startup/bl_operators/file.py +++ b/release/scripts/startup/bl_operators/file.py @@ -38,59 +38,59 @@ class WM_OT_previews_batch_generate(Operator): # ----------- # File props. files = CollectionProperty( - type=bpy.types.OperatorFileListElement, - options={'HIDDEN', 'SKIP_SAVE'}, - ) + type=bpy.types.OperatorFileListElement, + options={'HIDDEN', 'SKIP_SAVE'}, + ) directory = StringProperty( - maxlen=1024, - subtype='FILE_PATH', - options={'HIDDEN', 'SKIP_SAVE'}, - ) + maxlen=1024, + subtype='FILE_PATH', + options={'HIDDEN', 'SKIP_SAVE'}, + ) # Show only images/videos, and directories! filter_blender = BoolProperty( - default=True, - options={'HIDDEN', 'SKIP_SAVE'}, - ) + default=True, + options={'HIDDEN', 'SKIP_SAVE'}, + ) filter_folder = BoolProperty( - default=True, - options={'HIDDEN', 'SKIP_SAVE'}, - ) + default=True, + options={'HIDDEN', 'SKIP_SAVE'}, + ) # ----------- # Own props. use_scenes = BoolProperty( - default=True, - name="Scenes", - description="Generate scenes' previews", - ) + default=True, + name="Scenes", + description="Generate scenes' previews", + ) use_collections = BoolProperty( - default=True, - name="Collections", - description="Generate collections' previews", - ) + default=True, + name="Collections", + description="Generate collections' previews", + ) use_objects = BoolProperty( - default=True, - name="Objects", - description="Generate objects' previews", - ) + default=True, + name="Objects", + description="Generate objects' previews", + ) use_intern_data = BoolProperty( - default=True, - name="Mat/Tex/...", - description="Generate 'internal' previews (materials, textures, images, etc.)", - ) + default=True, + name="Mat/Tex/...", + description="Generate 'internal' previews (materials, textures, images, etc.)", + ) use_trusted = BoolProperty( - default=False, - name="Trusted Blend Files", - description="Enable python evaluation for selected files", - ) + default=False, + name="Trusted Blend Files", + description="Enable python evaluation for selected files", + ) use_backups = BoolProperty( - default=True, - name="Save Backups", - description="Keep a backup (.blend1) version of the files when saving with generated previews", - ) + default=True, + name="Save Backups", + description="Keep a backup (.blend1) version of the files when saving with generated previews", + ) def invoke(self, context, event): context.window_manager.fileselect_add(self) @@ -148,58 +148,59 @@ class WM_OT_previews_batch_clear(Operator): # ----------- # File props. files = CollectionProperty( - type=bpy.types.OperatorFileListElement, - options={'HIDDEN', 'SKIP_SAVE'}, - ) + type=bpy.types.OperatorFileListElement, + options={'HIDDEN', 'SKIP_SAVE'}, + ) directory = StringProperty( - maxlen=1024, - subtype='FILE_PATH', - options={'HIDDEN', 'SKIP_SAVE'}, - ) + maxlen=1024, + subtype='FILE_PATH', + options={'HIDDEN', 'SKIP_SAVE'}, + ) # Show only images/videos, and directories! filter_blender = BoolProperty( - default=True, - options={'HIDDEN', 'SKIP_SAVE'}, - ) + default=True, + options={'HIDDEN', 'SKIP_SAVE'}, + ) filter_folder = BoolProperty( - default=True, - options={'HIDDEN', 'SKIP_SAVE'}, - ) + default=True, + options={'HIDDEN', 'SKIP_SAVE'}, + ) # ----------- # Own props. use_scenes = BoolProperty( - default=True, - name="Scenes", - description="Clear scenes' previews", - ) - use_collections = BoolProperty(default=True, - name="Collections", - description="Clear collections' previews", - ) + default=True, + name="Scenes", + description="Clear scenes' previews", + ) + use_collections = BoolProperty( + default=True, + name="Collections", + description="Clear collections' previews", + ) use_objects = BoolProperty( - default=True, - name="Objects", - description="Clear objects' previews", - ) + default=True, + name="Objects", + description="Clear objects' previews", + ) use_intern_data = BoolProperty( - default=True, - name="Mat/Tex/...", - description="Clear 'internal' previews (materials, textures, images, etc.)", - ) + default=True, + name="Mat/Tex/...", + description="Clear 'internal' previews (materials, textures, images, etc.)", + ) use_trusted = BoolProperty( - default=False, - name="Trusted Blend Files", - description="Enable python evaluation for selected files", - ) + default=False, + name="Trusted Blend Files", + description="Enable python evaluation for selected files", + ) use_backups = BoolProperty( - default=True, - name="Save Backups", - description="Keep a backup (.blend1) version of the files when saving with cleared previews", - ) + default=True, + name="Save Backups", + description="Keep a backup (.blend1) version of the files when saving with cleared previews", + ) def invoke(self, context, event): context.window_manager.fileselect_add(self) |