Page MenuHome

Cleanup: Move mesh legacy conversion to a separate file
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Jul 7 2022, 8:47 PM.

Details

Summary

It's helpful to make the separation of legacy data formats explicit,
because it clutters actively changed code less and makes it clear which
areas do not follow Blender's current design. In this case I separated
the MFace/"tessface" conversion code into a separate blenkernel
.cc file and header. This also makes refactoring to remove these
functions simpler because it's easier to find them.

In the future, conversions to the MLoopUV type and MVert
can be implemented here for the same reasons (see T95965).

Diff Detail

Repository
rB Blender

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Jul 7 2022, 8:47 PM
Hans Goudey (HooglyBoogly) created this revision.

One inline note of a change that seems unrelated, otherwise LGTM.

source/blender/makesdna/DNA_object_types.h
791–793

This looks unrelated to this patch.

This revision is now accepted and ready to land.Jul 8 2022, 2:28 AM
source/blender/makesdna/DNA_object_types.h
791–793

Thanks for catching that!