Fix T45152: multiview/stereo render not working with Freestyle + Cycles.

This commit is contained in:
Brecht Van Lommel 2015-10-10 19:18:04 +02:00
parent fc7c856da2
commit df1a3b0fda
Notes: blender-bot 2023-02-14 08:59:10 +01:00
Referenced by issue #45152, 3D Stereo rendering with Cycles does not work correctly with Freestyle enabled
1 changed files with 10 additions and 4 deletions

View File

@ -3168,11 +3168,17 @@ void RE_RenderFreestyleStrokes(Render *re, Main *bmain, Scene *scene, int render
void RE_RenderFreestyleExternal(Render *re)
{
if (!re->test_break(re->tbh)) {
RE_Database_FromScene(re, re->main, re->scene, re->lay, 1);
RE_Database_Preprocess(re);
RenderView *rv;
init_freestyle(re);
add_freestyle(re, 1);
RE_Database_Free(re);
for (rv = re->result->views.first; rv; rv = rv->next) {
RE_SetActiveRenderView(re, rv->name);
RE_Database_FromScene(re, re->main, re->scene, re->lay, 1);
RE_Database_Preprocess(re);
add_freestyle(re, 1);
RE_Database_Free(re);
}
}
}
#endif