diff options
author | Bastien Montagne <bastien@blender.org> | 2020-06-30 12:02:40 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-06-30 13:19:11 +0300 |
commit | fa7d990f1097ff7c436be17725de62470e1ad3b3 (patch) | |
tree | d444ff64584d65c3e750fbbaf7ccf7f4a9937596 /source | |
parent | 0b3313e53230914e79dd5c8f02b90fbaf6a8874b (diff) |
LibOverride: Fix improper update of depsgraph relations.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/lib_override.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/lib_override.c b/source/blender/blenkernel/intern/lib_override.c index ec353bb82fc..a22e84ff94f 100644 --- a/source/blender/blenkernel/intern/lib_override.c +++ b/source/blender/blenkernel/intern/lib_override.c @@ -30,6 +30,7 @@ #include "DNA_object_types.h" #include "DEG_depsgraph.h" +#include "DEG_depsgraph_build.h" #include "BKE_armature.h" #include "BKE_lib_id.h" @@ -1004,9 +1005,9 @@ void BKE_lib_override_library_update(Main *bmain, ID *local) local->tag |= LIB_TAG_OVERRIDE_LIBRARY_REFOK; /* Full rebuild of Depsgraph! */ - - /* XXX Is this actual valid replacement for old DAG_relations_tag_update(bmain) ? */ - DEG_on_visible_update(bmain, true); + /* Note: this is reallly brute force, in theory updates from RNA should have handle this already, + * but for now let's play it safe. */ + DEG_relations_tag_update(bmain); } /** Update all overrides from given \a bmain. */ |