Asset Pipeline: Improve Performance #235
@ -144,12 +144,12 @@ def isolate_collection(iso_col: bpy.types.Collection):
|
||||
try:
|
||||
# Exclude all collections that are not iso collection
|
||||
for col in view_layer_col.children:
|
||||
view_layer_col.exclude = col.name != iso_col.name
|
||||
col.exclude = col.name != iso_col.name
|
||||
yield
|
||||
|
||||
finally:
|
||||
for col in view_layer_col.children:
|
||||
view_layer_col.exclude = col_exclude[col.name]
|
||||
col.exclude = col_exclude[col.name]
|
||||
view_layer_col.collection.children.unlink(iso_col)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user