From b65a0228920df21b7f5a0a057bc9ad5fad64e4b3 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Fri, 1 Aug 2014 10:18:25 +0900 Subject: Freestyle: Removed the stored bContext from the Controller class. The stored context object was used for creation of shade nodes. A closer look at the node system showed that the context is not actually used when shader nodes are added to a shader node tree. Relying on this fact, now a NULL pointer is passed to nodeAddStaticNode() instead of the stored bContext pointer. --- source/blender/freestyle/FRS_freestyle.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender/freestyle/FRS_freestyle.h') diff --git a/source/blender/freestyle/FRS_freestyle.h b/source/blender/freestyle/FRS_freestyle.h index 3777f8dfd49..fc9fc35e410 100644 --- a/source/blender/freestyle/FRS_freestyle.h +++ b/source/blender/freestyle/FRS_freestyle.h @@ -33,7 +33,6 @@ struct Render; struct Material; struct FreestyleConfig; struct FreestyleLineStyle; -struct bContext; extern struct Scene *freestyle_scene; extern float freestyle_viewpoint[3]; @@ -60,7 +59,7 @@ void FRS_move_active_lineset_up(struct FreestyleConfig *config); void FRS_move_active_lineset_down(struct FreestyleConfig *config); /* Testing */ -struct Material *FRS_create_stroke_material(struct bContext *C, struct Main *bmain, struct FreestyleLineStyle *linestyle); +struct Material *FRS_create_stroke_material(struct Main *bmain, struct FreestyleLineStyle *linestyle); #ifdef __cplusplus } -- cgit v1.2.3