diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-07-18 06:45:00 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-08-12 05:10:30 +0400 |
commit | 7f3488f9925d974ac5e95385fccd61ede1531d1f (patch) | |
tree | cb01d2dde8ebe1e79202afd672b2cfcbe13da965 | |
parent | 83360eccae531c950827fe13c1344b5bacf78dc9 (diff) |
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.
-rw-r--r-- | release/scripts/startup/bl_ui/properties_freestyle.py | 5 |
1 files changed, 4 insertions, 1 deletions
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() |