diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-15 17:00:08 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-15 18:20:02 +0300 |
commit | 5d879c5d42f3d7e80063ef2fb200342dd0939818 (patch) | |
tree | 789ff5ed67d94f12eb4d20fd7d5f0d7d53dcd2c7 /source/blender/blenkernel/intern/particle.c | |
parent | 83155cce5b1b2db44728680e69a009aaf371672b (diff) |
particle edit: Fix crash when using without copy-on-write
Diffstat (limited to 'source/blender/blenkernel/intern/particle.c')
-rw-r--r-- | source/blender/blenkernel/intern/particle.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/particle.c b/source/blender/blenkernel/intern/particle.c index bda258e7a0b..4d07f212c97 100644 --- a/source/blender/blenkernel/intern/particle.c +++ b/source/blender/blenkernel/intern/particle.c @@ -302,6 +302,9 @@ struct ParticleSystem *psys_eval_get(Depsgraph *depsgraph, ParticleSystem *psys) { Object *object_eval = DEG_get_evaluated_object(depsgraph, object); + if (object_eval == object) { + return psys; + } ParticleSystem *psys_eval = object_eval->particlesystem.first; while (psys_eval != NULL) { if (psys_eval->orig_psys == psys) { |