Page MenuHome

Use DNA defaults system for modifiers
Needs ReviewPublic

Authored by Hans Goudey (HooglyBoogly) on Fri, Aug 28, 9:41 PM.

Details

Summary

Benefits
As noted in T80164, there are quite a few area of Blender where the "Reset to Default Value" operator
in button context menus doesn't work. Modifiers are one of them, because the DNA defaults system was never set up for them.

Also, this should make versioning for modifiers easier. Whenever a new field is added it should be
automatically initialized to the default value.

Issues
Some modifiers crash when you add them. It's a bit tricky to debug this since it's all hidden in macros.

  • Data Transfer Modifier
  • Mesh Deform Modifier
  • Smooth Laplacian Modifier
  • Wave Modifier

I'm also getting strange compile errors using the MEMCPY_STRUCT_AFTER macro
for some modifiers, so I have it commented out for now:

  • Solidify Modifier
  • Corrective Smooth Modifier
  • Screw Modifier

Next Steps
After the problems in this patch are figured out, these are the next steps for future commits:

  • Cloth Modifier
  • Fluid Modifier
  • Softbody Modifier

Diff Detail

Repository
rB Blender
Branch
dna-defaults-modifiers (branched from master)
Build Status
Buildable 9871
Build 9871: arc lint + arc unit