diff options
author | Hans Goudey <h.goudey@me.com> | 2020-10-01 17:38:00 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-10-01 17:38:00 +0300 |
commit | 83980506957cd4e31e8dc7041672efb256b5c28c (patch) | |
tree | 15224c5527a82ee5db618a28bbd3e0c178e6095e /source/blender/blenkernel/intern/texture.c | |
parent | 551204a17f14b94b4e222546231f4e5846762ce7 (diff) |
Use DNA defaults system for modifiers
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.
Additionally, this should make modifier versioning easier. Whenever a
new field is added it should be automatically initialized to the
default value.
I had to make some ordering changes in the following modifiers to work
around an error with `-Wsign-conversion` in the macros:
- Solidify Modifier
- Corrective Smooth Modifier
- Screw Modifier
Some modifiers are special cases and are skipped in this commit:
- Data Transfer Modifier
- Cloth Modifier
- Fluid Modifier
- Softbody Modifier
Differential Revision: https://developer.blender.org/D8747
Diffstat (limited to 'source/blender/blenkernel/intern/texture.c')
0 files changed, 0 insertions, 0 deletions