From 84cf670d1d86f69aecbb6307aa49650e958d7845 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 10 Oct 2018 15:50:13 +1100 Subject: Modifier: Fix cage option for deform modifiers Show-on-cage and show-in-editmode options now work as it did in 2.7x (but only for deformation). --- source/blender/makesdna/DNA_mesh_types.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (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 656f9fa3034..c591b57002a 100644 --- a/source/blender/makesdna/DNA_mesh_types.h +++ b/source/blender/makesdna/DNA_mesh_types.h @@ -100,8 +100,14 @@ typedef struct Mesh_Runtime { /** 'BVHCache', for 'BKE_bvhutil.c' */ struct LinkNode *bvh_cache; - int deformed_only; /* set by modifier stack if only deformed from original */ - char padding[4]; + /** Set by modifier stack if only deformed from original. */ + char deformed_only; + /** + * Copied from edit-mesh (hint, draw with editmesh data). + * In the future we may leave the mesh-data empty + * since its not needed if we can use edit-mesh data. */ + char is_original; + char padding[6]; } Mesh_Runtime; typedef struct Mesh { -- cgit v1.2.3