Cleanup: Python imports

Split over lines to diff more easily.
This commit is contained in:
Campbell Barton
2017-11-29 18:00:41 +11:00
parent c17c6557b4
commit ad7fb1c028
14 changed files with 67 additions and 47 deletions

View File

@@ -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: