Depsgraph: Ensure modifiers evaluation doesn't happen on top evaluated mesh
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 12 Jun 2018 08:01:57 +0000 (10:01 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 12 Jun 2018 12:30:50 +0000 (14:30 +0200)
source/blender/blenkernel/intern/DerivedMesh.c

index c081bb0..c4904fc 100644 (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;