diff --git a/source/blender/blenkernel/intern/effect.c b/source/blender/blenkernel/intern/effect.c index 4859aa8f791..24ee470eaa7 100644 --- a/source/blender/blenkernel/intern/effect.c +++ b/source/blender/blenkernel/intern/effect.c @@ -630,8 +630,7 @@ int get_effector_data(EffectorCache *eff, EffectorData *efd, EffectedPoint *poin } else { /* use center of object for distance calculus */ - Object *ob = eff->ob; - Object obcopy = *ob; + const Object *ob = eff->ob; /* use z-axis as normal*/ normalize_v3_v3(efd->nor, ob->obmat[2]); @@ -654,8 +653,6 @@ int get_effector_data(EffectorCache *eff, EffectorData *efd, EffectedPoint *poin if (real_velocity) copy_v3_v3(efd->vel, eff->velocity); - *eff->ob = obcopy; - efd->size = 0.0f; ret = 1;