Page MenuHome

Fix T80098: Mesh deform doesn't update in edit mode
ClosedPublic

Authored by Campbell Barton (campbellbarton) on Aug 26 2020, 4:36 AM.

Details

Summary

Use BKE_mesh_wrapper API access to access mesh coordinates for modifier evaluation.

Call BKE_mesh_wrapper_ensure_mdata when binding since it's a one off operation.

Regression from deaff945d0b965d1e588cdecd084080b07db2e1f


Tested with both the cage and the modified meshes are edit-meshes.

Diff Detail

Repository
rB Blender
Branch
TEMP-T80098-FIX (branched from master)
Build Status
Buildable 9793
Build 9793: arc lint + arc unit

Event Timeline

Campbell Barton (campbellbarton) requested review of this revision.Aug 26 2020, 4:36 AM
Campbell Barton (campbellbarton) created this revision.
This revision is now accepted and ready to land.Aug 26 2020, 1:03 PM
Sebastian Parborg (zeddb) accepted this revision.EditedAug 26 2020, 3:21 PM

Ok seems like my files is a bit corrupted. (?)

If I create a new file in 2.83 and load it up with this patch it works.

But if I open up the file attached in this ticket I have to rebind it before it works in both 2.83 and newer versions.

Other than removing the unused variable, this looks good to me.

source/blender/modifiers/intern/MOD_meshdeform.c
358

cagecos is now unused, remove it.