Merge branch 'blender-v2.92-release'
This commit is contained in:
commit
9fdb32bf51
|
@ -142,6 +142,14 @@ static void clear_id_nodes_conditional(Depsgraph::IDDepsNodes *id_nodes, const F
|
|||
* datablock for her own dirty needs. */
|
||||
continue;
|
||||
}
|
||||
if (id_node->id_cow == id_node->id_orig) {
|
||||
/* Copy-on-write version is not needed for this ID type.
|
||||
*
|
||||
* NOTE: Is important to not de-reference the original datablock here because it might be
|
||||
* freed already (happens during main database free when some IDs are freed prior to a
|
||||
* scene). */
|
||||
continue;
|
||||
}
|
||||
if (!deg_copy_on_write_is_expanded(id_node->id_cow)) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -265,6 +265,10 @@ void depsgraph_update_editors_tag(Main *bmain, Depsgraph *graph, ID *id)
|
|||
void depsgraph_id_tag_copy_on_write(Depsgraph *graph, IDNode *id_node, eUpdateSource update_source)
|
||||
{
|
||||
ComponentNode *cow_comp = id_node->find_component(NodeType::COPY_ON_WRITE);
|
||||
if (cow_comp == nullptr) {
|
||||
BLI_assert(!deg_copy_on_write_is_needed(GS(id_node->id_orig->name)));
|
||||
return;
|
||||
}
|
||||
cow_comp->tag_update(graph, update_source);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue