Page MenuHome

Fix T80996: Weight Proximity modifier: crash going to editmode on a target in certain situations

Authored by Philipp Oeser (lichtwerk) on Sep 21 2020, 6:05 PM.



Regression from rBdeaff945d0b96.

mesh_ensure_looptri_data would overflow

Crash would only happen if a second Data Transfer modifier (transferring
UVs) follows, so exact reason for this is not yet entirely clear to me
tbh. Also unclear if this has an unneccessary performance impact?
So basically, I am dropping this here, because "it works" :)

Similar fix as

Diff Detail

rB Blender

Event Timeline

Philipp Oeser (lichtwerk) requested review of this revision.Sep 21 2020, 6:06 PM
Campbell Barton (campbellbarton) added inline comments.

Since this is an expensive operation, I have been adding comments above each use, either justifying why the conversion is acceptable, or noting it as a TODO to avoid the conversion. In this case there are edit-mode versions of the BVH lookup functions so it could be avoided, although it's a fairly obscure case so it's not high priority either.

That can noted above this function call, otherwise LGTM.

This revision is now accepted and ready to land.Sep 22 2020, 6:39 AM