Doing that copy is the right thing, but only if the mesh has its own deformed_only flag set correctly. This isn't generally the case, so keeping dm->deformedOnly = 1 is better.
Doing that copy is the right thing, but only if the mesh has its own deformed_only flag set correctly. This isn't generally the case, so keeping dm->deformedOnly = 1 is better.