ensure node_scene use node

main
pullusb 2024-04-22 15:48:45 +02:00
parent fbbc0ecaf3
commit 270b0fb20e
1 changed files with 2 additions and 1 deletions

View File

@ -338,7 +338,8 @@ def get_set_viewlayer_from_gp(ob, l, scene=None, node_scene=None,
# print('Compo Scene:', node_scene.name) #Dbg
## If not passed, identical to scene holding viewlayers
if not node_scene.use_nodes:
node_scene.use_nodes = True
node_tree = node_scene.node_tree
nodes = node_tree.nodes