Freestyle: show "use_nodes" option in the UI when Cycles is enabled.

The "use_textures" option is intended for the BI and does not make sense in Cycles.
This commit is contained in:
Tamito Kajiyama 2014-07-18 11:45:00 +09:00
parent 83360eccae
commit 7f3488f992
1 changed files with 4 additions and 1 deletions

View File

@ -674,7 +674,10 @@ class RENDERLAYER_PT_freestyle_linestyle(RenderLayerFreestyleEditorButtonsPanel,
layout.separator()
row = layout.row()
row.prop(linestyle, "use_texture")
if rd.use_shading_nodes:
row.prop(linestyle, "use_nodes")
else:
row.prop(linestyle, "use_texture")
row.prop(linestyle, "texture_spacing", text="Spacing Along Stroke")
row = layout.row()