Depsgraph: Restore workaround for CoW objects not being fully expanded
This commit is contained in:
@@ -41,6 +41,8 @@
|
||||
#include "intern/depsgraph_types.h"
|
||||
#include "intern/nodes/deg_node.h"
|
||||
|
||||
#include "DEG_depsgraph.h"
|
||||
|
||||
namespace DEG {
|
||||
|
||||
void deg_graph_build_finalize(Depsgraph *graph)
|
||||
@@ -61,6 +63,9 @@ void deg_graph_build_finalize(Depsgraph *graph)
|
||||
id_node->tag_update(graph);
|
||||
}
|
||||
}
|
||||
#ifdef WITH_COPY_ON_WRITE
|
||||
DEG_id_tag_update_ex(graph->bmain, id_node->id_orig, DEG_TAG_COPY_ON_WRITE);
|
||||
#endif
|
||||
}
|
||||
GHASH_FOREACH_END();
|
||||
}
|
||||
|
||||
@@ -269,7 +269,7 @@ void deg_id_tag_update(Main *bmain, ID *id, int flag)
|
||||
|
||||
void deg_graph_on_visible_update(Main *bmain, Scene *scene, Depsgraph *graph)
|
||||
{
|
||||
/* Nake sure objects are up to date. */
|
||||
/* Make sure objects are up to date. */
|
||||
GHASH_FOREACH_BEGIN(DEG::IDDepsNode *, id_node, graph->id_hash)
|
||||
{
|
||||
const short idtype = GS(id_node->id_orig->name);
|
||||
|
||||
@@ -449,7 +449,7 @@ int foreach_libblock_validate_callback(void *user_data,
|
||||
if (*id_p != NULL) {
|
||||
if (!check_datablock_expanded(*id_p)) {
|
||||
data->is_valid = false;
|
||||
/* TODO(sergey_: Store which is is not valid? */
|
||||
/* TODO(sergey): Store which is is not valid? */
|
||||
}
|
||||
}
|
||||
return IDWALK_RET_NOP;
|
||||
|
||||
Reference in New Issue
Block a user