diff options
author | Bastien Montagne <bastien@blender.org> | 2020-06-15 19:24:20 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-06-15 19:25:40 +0300 |
commit | d97cb98b1192a71d940981997044653634a253de (patch) | |
tree | d2570288ce68bdb7e5c557d02c924e3e26e1f4ad /source/blender/depsgraph | |
parent | bf1e5a2133a3c35549e24850739f83af34eb15b3 (diff) |
Fix unhandled RECALC options in depsgraph code after recent change.
Spotted by @LazyDodo on IRC, thanks.
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_tag.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc index 0ee86088e43..b757a4fc477 100644 --- a/source/blender/depsgraph/intern/depsgraph_tag.cc +++ b/source/blender/depsgraph/intern/depsgraph_tag.cc @@ -237,6 +237,8 @@ void depsgraph_tag_to_component_opcode(const ID *id, case ID_RECALC_PSYS_ALL: BLI_assert(!"Should not happen"); break; + case ID_RECALC_TAG_FOR_UNDO: + break; /* Must be ignored by depsgraph. */ } } @@ -737,6 +739,8 @@ const char *DEG_update_tag_as_string(IDRecalcFlag flag) return "SOURCE"; case ID_RECALC_ALL: return "ALL"; + case ID_RECALC_TAG_FOR_UNDO: + return "TAG_FOR_UNDO"; } return nullptr; } |