particle edit: Fix crash when using without copy-on-write
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user