Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2018-05-15 14:26:24 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2018-05-16 13:41:48 +0300
commitdbe4189dcd3ac715e5e3d39b7d7a0e6e52651f07 (patch)
treebc402b3f789757e28b73f6b5751d1480f954bda1 /source/blender/makesdna/DNA_mesh_types.h
parent46aec45b2a37aabcb4d1a391cdc587dc7a869ed0 (diff)
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.
Diffstat (limited to 'source/blender/makesdna/DNA_mesh_types.h')
-rw-r--r--source/blender/makesdna/DNA_mesh_types.h3
1 files changed, 3 insertions, 0 deletions
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 {