Fix for infinite freestyle re-render in the viewport
Was a regression since e618d8238e
and was caused by the wrong
main being tagged for update.
This commit is contained in:
@@ -472,7 +472,8 @@ Object *BlenderStrokeRenderer::NewMesh() const
|
||||
#else
|
||||
(void)base;
|
||||
#endif
|
||||
DAG_id_tag_update(&ob->id, OB_RECALC_OB | OB_RECALC_DATA | OB_RECALC_TIME);
|
||||
|
||||
DAG_id_tag_update_ex(freestyle_bmain, &ob->id, OB_RECALC_OB | OB_RECALC_DATA | OB_RECALC_TIME);
|
||||
|
||||
return ob;
|
||||
}
|
||||
|
@@ -5148,7 +5148,7 @@ void RE_Database_FromScene(Render *re, Main *bmain, Scene *scene, unsigned int l
|
||||
RE_SetView(re, mat);
|
||||
|
||||
/* force correct matrix for scaled cameras */
|
||||
DAG_id_tag_update(&camera->id, OB_RECALC_OB);
|
||||
DAG_id_tag_update_ex(re->main, &camera->id, OB_RECALC_OB);
|
||||
}
|
||||
|
||||
/* store for incremental render, viewmat rotates dbase */
|
||||
|
Reference in New Issue
Block a user