[Bf-blender-cvs] [34bc1e5] master: Freestyle: hide the Line Style tab from the Texture properties context when WITH_FREESTYLE build flag is off.

Tamito Kajiyama noreply at git.blender.org
Thu May 8 03:11:46 CEST 2014


Commit: 34bc1e528e32e6909b190ee3d2e73bbceb240de2
Author: Tamito Kajiyama
Date:   Thu May 8 10:01:49 2014 +0900
https://developer.blender.org/rB34bc1e528e32e6909b190ee3d2e73bbceb240de2

Freestyle: hide the Line Style tab from the Texture properties context when WITH_FREESTYLE build flag is off.

===================================================================

M	source/blender/editors/space_buttons/buttons_texture.c

===================================================================

diff --git a/source/blender/editors/space_buttons/buttons_texture.c b/source/blender/editors/space_buttons/buttons_texture.c
index 7fb2d0f..b43ddf2 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;
 }




More information about the Bf-blender-cvs mailing list