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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-04-13 13:51:49 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-04-13 14:04:19 +0300
commitf0a4c631bbac6247e3b3795681a3a31398f71c13 (patch)
tree11e4f4283284b186b5bad8cec9109de55ce52959 /source/blender/blenkernel/intern/object_update.c
parent1c85fb95b18e1be1e1c5807514b5cb83b4c24c6d (diff)
Fix incorrect object in editmode tests in depsgraph eval.
These cases should not depend on the view layer.
Diffstat (limited to 'source/blender/blenkernel/intern/object_update.c')
-rw-r--r--source/blender/blenkernel/intern/object_update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/object_update.c b/source/blender/blenkernel/intern/object_update.c
index 7904e479933..c70e07e6c4c 100644
--- a/source/blender/blenkernel/intern/object_update.c
+++ b/source/blender/blenkernel/intern/object_update.c
@@ -222,7 +222,7 @@ void BKE_object_handle_data_update(
}
/* particles */
- if ((ob != OBEDIT_FROM_VIEW_LAYER(eval_ctx->view_layer)) && ob->particlesystem.first) {
+ if (!(ob->mode & OB_MODE_EDIT) && ob->particlesystem.first) {
ParticleSystem *tpsys, *psys;
DerivedMesh *dm;
ob->transflag &= ~OB_DUPLIPARTS;