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/modifiers/intern/MOD_util.c
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/modifiers/intern/MOD_util.c')
-rw-r--r--source/blender/modifiers/intern/MOD_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_util.c b/source/blender/modifiers/intern/MOD_util.c
index f3da8d054ec..c5593cd004e 100644
--- a/source/blender/modifiers/intern/MOD_util.c
+++ b/source/blender/modifiers/intern/MOD_util.c
@@ -313,6 +313,7 @@ Mesh *get_mesh(
LIB_ID_CREATE_NO_DEG_TAG |
LIB_ID_COPY_NO_PREVIEW,
false);
+ mesh->runtime.deformed_only = 1;
}
/* TODO(sybren): after modifier conversion of DM to Mesh is done, check whether