Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
BN-160 Fixed issue with default layer name for Blender v3
Browse files Browse the repository at this point in the history
  • Loading branch information
rabits committed Jan 30, 2022
1 parent d57ad26 commit 880c852
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion BlendNet/script-compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@

link_name_overrides = {}
if image_node.image.type == 'MULTILAYER':
image_node.layer = 'View Layer'
try:
image_node.layer = 'View Layer'
except:
# In Blender v3 the naming was changed
image_node.layer = 'ViewLayer'
link_name_overrides['Image'] = 'Combined'

nodes_to_remove = []
Expand Down

0 comments on commit 880c852

Please sign in to comment.