Freestyle: an improved workflow of line style shading nodes.
Removed the previous changes for passing a line style through the Controller, and revised the BlenderTextureShader to assign the shader node tree of a line style (if specified) to strokes. This way the assignment of shading nodes can be done through both the Freestyle GUI and Python scripting.
This commit is contained in:
@@ -1078,8 +1078,7 @@ def process(layer_name, lineset_name):
|
||||
has_tex = False
|
||||
if scene.render.use_shading_nodes:
|
||||
if linestyle.use_nodes and linestyle.node_tree:
|
||||
### TODO ###
|
||||
#shaders_list.append(BlenderTextureShader(linestyle.nodetree))
|
||||
shaders_list.append(BlenderTextureShader(linestyle.node_tree))
|
||||
has_tex = True
|
||||
else:
|
||||
if linestyle.use_texture:
|
||||
|
Reference in New Issue
Block a user