From 7f3488f9925d974ac5e95385fccd61ede1531d1f Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Fri, 18 Jul 2014 11:45:00 +0900 Subject: 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. --- release/scripts/startup/bl_ui/properties_freestyle.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'release/scripts') diff --git a/release/scripts/startup/bl_ui/properties_freestyle.py b/release/scripts/startup/bl_ui/properties_freestyle.py index 03eb3f05c31..58818e90440 100644 --- a/release/scripts/startup/bl_ui/properties_freestyle.py +++ b/release/scripts/startup/bl_ui/properties_freestyle.py @@ -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() -- cgit v1.2.3