mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Improved formatting
This commit is contained in:
parent
a4dbc19580
commit
cab0a6a3ee
1 changed files with 4 additions and 2 deletions
|
|
@ -28,11 +28,13 @@ class ExtractBlend(publish.Extractor):
|
|||
for data in instance:
|
||||
data_blocks.add(data)
|
||||
# Pack used images in the blend files.
|
||||
if not(isinstance(data, bpy.types.Object) and data.type == 'MESH'):
|
||||
if not (
|
||||
isinstance(data, bpy.types.Object) and data.type == 'MESH'
|
||||
):
|
||||
continue
|
||||
for material_slot in data.material_slots:
|
||||
mat = material_slot.material
|
||||
if not(mat and mat.use_nodes):
|
||||
if not (mat and mat.use_nodes):
|
||||
continue
|
||||
tree = mat.node_tree
|
||||
if tree.type != 'SHADER':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue