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.
This commit is contained in:
Thomas Dinges 2013-06-01 02:14:07 +00:00
parent 249bf25565
commit f47cb7e2d9

@ -2270,12 +2270,10 @@ 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)) {
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
}