diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-11-29 10:00:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-11-29 10:05:41 +0300 |
commit | ad7fb1c028433621a9f71ab01bbda2ca827ffe74 (patch) | |
tree | 864e0da811c59d04009f7f61ed2b170cd80dac6d /release/scripts/modules/bl_previews_utils/bl_previews_render.py | |
parent | c17c6557b4ea4bfeb4528b74703795798aedaa66 (diff) |
Cleanup: Python imports
Split over lines to diff more easily.
Diffstat (limited to 'release/scripts/modules/bl_previews_utils/bl_previews_render.py')
-rw-r--r-- | release/scripts/modules/bl_previews_utils/bl_previews_render.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/release/scripts/modules/bl_previews_utils/bl_previews_render.py b/release/scripts/modules/bl_previews_utils/bl_previews_render.py index 71208ef3485..32266e972bb 100644 --- a/release/scripts/modules/bl_previews_utils/bl_previews_render.py +++ b/release/scripts/modules/bl_previews_utils/bl_previews_render.py @@ -24,7 +24,11 @@ import os import bpy -from mathutils import Vector, Euler, Matrix +from mathutils import ( + Euler, + Matrix, + Vector, +) INTERN_PREVIEW_TYPES = {'MATERIAL', 'LAMP', 'WORLD', 'TEXTURE', 'IMAGE'} @@ -39,7 +43,7 @@ def rna_backup_gen(data, include_props=None, exclude_props=None, root=()): # only writable properties... for p in data.bl_rna.properties: pid = p.identifier - if pid in {'rna_type', }: + if pid == "rna_type": continue path = root + (pid,) if include_props is not None and path not in include_props: |