diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-04-13 13:51:49 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-04-13 14:04:19 +0300 |
commit | f0a4c631bbac6247e3b3795681a3a31398f71c13 (patch) | |
tree | 11e4f4283284b186b5bad8cec9109de55ce52959 /source/blender/modifiers/intern/MOD_meshdeform.c | |
parent | 1c85fb95b18e1be1e1c5807514b5cb83b4c24c6d (diff) |
Fix incorrect object in editmode tests in depsgraph eval.
These cases should not depend on the view layer.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_meshdeform.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_meshdeform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_meshdeform.c b/source/blender/modifiers/intern/MOD_meshdeform.c index 6bf735e1e5c..d7f4af8df63 100644 --- a/source/blender/modifiers/intern/MOD_meshdeform.c +++ b/source/blender/modifiers/intern/MOD_meshdeform.c @@ -298,7 +298,7 @@ static void meshdeformModifier_do( * * We'll support this case once granular dependency graph is landed. */ - if (mmd->object == OBEDIT_FROM_VIEW_LAYER(eval_ctx->view_layer)) { + if (mmd->object->mode & OB_MODE_EDIT) { BMEditMesh *em = BKE_editmesh_from_object(mmd->object); tmpdm = editbmesh_get_derived_cage_and_final(eval_ctx, md->scene, mmd->object, em, 0, &cagedm); if (tmpdm) |