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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user