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.
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
After the problems in this patch are figured out, these are the next steps for future commits:
- Cloth Modifier
- Fluid Modifier
- Softbody Modifier