[Bf-blender-cvs] [d97cb98b119] master: Fix unhandled RECALC options in depsgraph code after recent change.
Bastien Montagne
noreply at git.blender.org
Mon Jun 15 18:25:45 CEST 2020
Commit: d97cb98b1192a71d940981997044653634a253de
Author: Bastien Montagne
Date: Mon Jun 15 18:24:20 2020 +0200
Branches: master
https://developer.blender.org/rBd97cb98b1192a71d940981997044653634a253de
Fix unhandled RECALC options in depsgraph code after recent change.
Spotted by @LazyDodo on IRC, thanks.
===================================================================
M source/blender/depsgraph/intern/depsgraph_tag.cc
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list