Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-05-08 05:01:49 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-05-08 05:02:51 +0400
commit34bc1e528e32e6909b190ee3d2e73bbceb240de2 (patch)
tree2eda13f1b7df8a4f784c34fc5bf48fad2fc1fd78
parentbebcd4d5c57af3df76da837c5f2c6f4fb180cd93 (diff)
Freestyle: hide the Line Style tab from the Texture properties context when WITH_FREESTYLE build flag is off.
-rw-r--r--source/blender/editors/space_buttons/buttons_texture.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_buttons/buttons_texture.c b/source/blender/editors/space_buttons/buttons_texture.c
index 7fb2d0fd538..b43ddf29cce 100644
--- a/source/blender/editors/space_buttons/buttons_texture.c
+++ b/source/blender/editors/space_buttons/buttons_texture.c
@@ -104,6 +104,7 @@ bool ED_texture_context_check_particles(const bContext *C)
bool ED_texture_context_check_linestyle(const bContext *C)
{
+#ifdef WITH_FREESTYLE
Scene *scene = CTX_data_scene(C);
SceneRenderLayer *actsrl;
FreestyleConfig *config;
@@ -121,6 +122,7 @@ bool ED_texture_context_check_linestyle(const bContext *C)
}
}
}
+#endif
return false;
}