From dbe4189dcd3ac715e5e3d39b7d7a0e6e52651f07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 15 May 2018 13:26:24 +0200 Subject: Save 'deform_only' flag in Mesh.runtime This flag is copied when converting between DM and Mesh. This flag is set to true in get_mesh(), to mimick the behaviour of CDDM_from_mesh_ex. This is necessary for the particle system to work correctly. --- source/blender/makesdna/DNA_mesh_types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/makesdna/DNA_mesh_types.h') diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h index 5ce24916c54..4e347cc4363 100644 --- a/source/blender/makesdna/DNA_mesh_types.h +++ b/source/blender/makesdna/DNA_mesh_types.h @@ -93,6 +93,9 @@ typedef struct MeshRuntime { /** 'BVHCache', for 'BKE_bvhutil.c' */ struct LinkNode *bvh_cache; + + int deformed_only; /* set by modifier stack if only deformed from original */ + char padding[4]; } MeshRuntime; typedef struct Mesh { -- cgit v1.2.3