Page MenuHome

Cleanup: Simplify custom data file writing process
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on May 22 2022, 8:49 PM.

Details

Summary

Previously the function had a fair amount of ugly boilerplate to avoid
allocating the temporary layers array, and then free it if necessary.
blender::Vector solves that problem more elegantly. Passing a span,
using references in a few cases, and using a switch statement also make
the functions simpler.

This refactoring is in preparation for D14583 and D14685.

Diff Detail

Repository
rB Blender

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.May 22 2022, 8:49 PM
Hans Goudey (HooglyBoogly) created this revision.
Jacques Lucke (JacquesLucke) added inline comments.
source/blender/blenkernel/BKE_customdata.h
716

typo (invalidating)

This revision is now accepted and ready to land.May 23 2022, 12:44 PM