Depsgraph: Ensure modifiers evaluation doesn't happen on top evaluated mesh

This commit is contained in:
Sergey Sharybin 2018-06-12 10:01:57 +02:00
parent c279592123
commit 3b2e19cb4c
1 changed files with 1 additions and 0 deletions

View File

@ -2051,6 +2051,7 @@ static void mesh_calc_modifiers(
ModifierApplyFlag app_flags = useRenderParams ? MOD_APPLY_RENDER : 0;
ModifierApplyFlag deform_app_flags = app_flags;
BLI_assert((me->id.tag & LIB_TAG_COPIED_ON_WRITE_EVAL_RESULT) == 0);
if (useCache)
app_flags |= MOD_APPLY_USECACHE;