ensure node_scene use node
parent
fbbc0ecaf3
commit
270b0fb20e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue