Temporary fix for [#35467] wrong lines with panoramic camera.

A warning message is shown when the panoramic camera is combined with Freestyle.
This commit is contained in:
Tamito Kajiyama
2013-05-22 19:21:42 +00:00
parent f594e9b6ac
commit ba4fb6bf43

View File

@@ -2259,6 +2259,15 @@ int RE_is_rendering_allowed(Scene *scene, Object *camera_override, ReportList *r
BKE_report(reports, RPT_ERROR, "No ortho render possible for panorama");
return 0;
}
#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;
}
}
#endif
}
/* layer flag tests */