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-08-01 05:18:25 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-08-12 05:10:55 +0400
commitb65a0228920df21b7f5a0a057bc9ad5fad64e4b3 (patch)
treecf4e3b88c1c5bf509144d24a299528837a8049df /source/blender/editors/render/render_shading.c
parentb941ab972d1e6d7e55eaa5ad509b50a25f8100ce (diff)
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.
Diffstat (limited to 'source/blender/editors/render/render_shading.c')
-rw-r--r--source/blender/editors/render/render_shading.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/render/render_shading.c b/source/blender/editors/render/render_shading.c
index 174c0077a35..72b4da64c3e 100644
--- a/source/blender/editors/render/render_shading.c
+++ b/source/blender/editors/render/render_shading.c
@@ -1261,7 +1261,7 @@ static int freestyle_stroke_material_create_exec(bContext *C, wmOperator *op)
return OPERATOR_CANCELLED;
}
- FRS_create_stroke_material(C, bmain, linestyle);
+ FRS_create_stroke_material(bmain, linestyle);
return OPERATOR_FINISHED;
}