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:
Tamito Kajiyama
2014-07-19 18:52:32 +09:00
parent c38e80d632
commit 34c133a488
17 changed files with 92 additions and 116 deletions

View File

@@ -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: