Correct modifier stack validation
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 17 Dec 2018 11:44:35 +0000 (12:44 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 17 Dec 2018 11:44:48 +0000 (12:44 +0100)
source/blender/blenkernel/intern/DerivedMesh.c

index a29b0011216aafa778e73571754006db9aca7c38..b2fe4ff742e317a110ec381b03fced427519f851 100644 (file)
@@ -1507,7 +1507,7 @@ static void mesh_calc_modifiers(
                                mesh_set_only_copy(me_orco_cloth, nextmask | CD_MASK_ORIGINDEX);
 
                                me_next = modwrap_applyModifier(md, &mectx_orco, me_orco_cloth);
-                               ASSERT_IS_VALID_DM(me_next);
+                               ASSERT_IS_VALID_MESH(me_next);
 
                                if (me_next) {
                                        /* if the modifier returned a new mesh, release the old one */