Depsgraph: Pass explicit bmain to graph build finalization
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
|
||||
namespace DEG {
|
||||
|
||||
void deg_graph_build_finalize(Depsgraph *graph)
|
||||
void deg_graph_build_finalize(Main *bmain, Depsgraph *graph)
|
||||
{
|
||||
const bool use_copy_on_write = DEG_depsgraph_use_copy_on_write();
|
||||
/* Re-tag IDs for update if it was tagged before the relations
|
||||
@@ -68,7 +68,7 @@ void deg_graph_build_finalize(Depsgraph *graph)
|
||||
* re-evaluaiton of the whole tree.
|
||||
*/
|
||||
if (use_copy_on_write) {
|
||||
DEG_id_tag_update_ex(graph->bmain, id_node->id_orig, DEG_TAG_COPY_ON_WRITE);
|
||||
DEG_id_tag_update_ex(bmain, id_node->id_orig, DEG_TAG_COPY_ON_WRITE);
|
||||
}
|
||||
}
|
||||
GHASH_FOREACH_END();
|
||||
|
||||
@@ -30,10 +30,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
struct Main;
|
||||
|
||||
namespace DEG {
|
||||
|
||||
struct Depsgraph;
|
||||
|
||||
void deg_graph_build_finalize(struct Depsgraph *graph);
|
||||
void deg_graph_build_finalize(struct Main *bmain, struct Depsgraph *graph);
|
||||
|
||||
} // namespace DEG
|
||||
|
||||
@@ -233,7 +233,7 @@ void DEG_graph_build_from_scene(Depsgraph *graph, Main *bmain, Scene *scene)
|
||||
}
|
||||
|
||||
/* 4) Flush visibility layer and re-schedule nodes for update. */
|
||||
DEG::deg_graph_build_finalize(deg_graph);
|
||||
DEG::deg_graph_build_finalize(bmain, deg_graph);
|
||||
|
||||
#if 0
|
||||
if (!DEG_debug_consistency_check(deg_graph)) {
|
||||
|
||||
Reference in New Issue
Block a user