diff options
author | Thomas Dinges <blender@dingto.org> | 2013-06-01 06:14:07 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-06-01 06:14:07 +0400 |
commit | f47cb7e2d97736b86ce263b99eb3712cba30a80b (patch) | |
tree | 04e99a7db0f19b17d799097caa3567b6013cd9e3 /source/blender/render | |
parent | 249bf25565570b1dce81547765ef761f911e661f (diff) |
Fix for r56965 by Tamito:
* Panorama Camera was not working for Blender Internal and Cycles anymore.
Code checked for Freestyle render layer flag, but as the flag is enabled per default, it broke Panorama camera in all cases. It made no sense to check this on a render layer basis anyway... check if Freestyle is enabled in general now instead.
Diffstat (limited to 'source/blender/render')
-rw-r--r-- | source/blender/render/intern/source/pipeline.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/render/intern/source/pipeline.c b/source/blender/render/intern/source/pipeline.c index d35121e8ae5..c8f8f844e5f 100644 --- a/source/blender/render/intern/source/pipeline.c +++ b/source/blender/render/intern/source/pipeline.c @@ -2270,11 +2270,9 @@ int RE_is_rendering_allowed(Scene *scene, Object *camera_override, ReportList *r } #ifdef WITH_FREESTYLE - for (srl = scene->r.layers.first; srl; srl = srl->next) { - if (FRS_is_freestyle_enabled(srl)) { - BKE_report(reports, RPT_ERROR, "Panoramic camera not supported in Freestyle"); - return 0; - } + if ((scene->r.mode & R_EDGE_FRS) && (!BKE_scene_use_new_shading_nodes(scene))) { + BKE_report(reports, RPT_ERROR, "Panoramic camera not supported in Freestyle"); + return 0; } #endif } |