Fix #35561: freestyle + read full sample layers = crash.
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Tue, 11 Jun 2013 02:32:01 +0000 (02:32 +0000)
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Tue, 11 Jun 2013 02:32:01 +0000 (02:32 +0000)
commit5520331215ffec52cd518f30bdf6e6276840e290
tree77a5df7b902cb05a3780dd0aff46f851d514c45c
parent9020df976ca37104a36a90d43c6e5b33c24cdbd2
Fix #35561: freestyle + read full sample layers = crash.

Now add_freestyle() in pipeline.c takes a second argument to enable/disable
stroke rendering.  When stroke rendering is disabled, the function allocates
data structures but does not perform stroke rendering.  The allocated data
structures (mostly left unpopulated with data elements) are intended to allow
for the Read Full Sample Layers (Shift-R) command in the compositor.
source/blender/freestyle/FRS_freestyle.h
source/blender/freestyle/intern/application/Controller.cpp
source/blender/freestyle/intern/application/Controller.h
source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp
source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.h
source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp
source/blender/render/extern/include/RE_pipeline.h
source/blender/render/intern/source/pipeline.c