particle edit: Fix crash when using without copy-on-write

This commit is contained in:
2018-05-15 16:00:08 +02:00
parent 83155cce5b
commit 5d879c5d42

View File

@@ -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) {