Blender Git Loki

Git Commits -> Revision 8398050

Revision 8398050 by Hans Goudey (master)
October 1, 2020, 14:38 (GMT)
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

Commit Details:

Full Hash: 83980506957cd4e31e8dc7041672efb256b5c28c
Parent Commit: 551204a
Lines Changed: +1098, -345

1 Added Path:

/source/blender/makesdna/DNA_modifier_defaults.h (+728, -0) (View)

54 Modified Paths:

/source/blender/makesdna/intern/CMakeLists.txt (+1, -0) (Diff)
/source/blender/makesdna/intern/dna_defaults.c (+117, -0) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+10, -25) (Diff)
/source/blender/modifiers/CMakeLists.txt (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_armature.c (+4, -1) (Diff)
/source/blender/modifiers/intern/MOD_array.c (+4, -13) (Diff)
/source/blender/modifiers/intern/MOD_bevel.c (+5, -16) (Diff)
/source/blender/modifiers/intern/MOD_boolean.c (+4, -4) (Diff)
/source/blender/modifiers/intern/MOD_build.c (+4, -2) (Diff)
/source/blender/modifiers/intern/MOD_cast.c (+4, -7) (Diff)
/source/blender/modifiers/intern/MOD_collision.c (+4, -10) (Diff)
/source/blender/modifiers/intern/MOD_correctivesmooth.c (+5, -11) (Diff)
/source/blender/modifiers/intern/MOD_curve.c (+4, -1) (Diff)
/source/blender/modifiers/intern/MOD_decimate.c (+4, -3) (Diff)
/source/blender/modifiers/intern/MOD_displace.c (+4, -5) (Diff)
/source/blender/modifiers/intern/MOD_dynamicpaint.c (+5, -3) (Diff)
/source/blender/modifiers/intern/MOD_edgesplit.c (+4, -3) (Diff)
/source/blender/modifiers/intern/MOD_explode.c (+4, -2) (Diff)
/source/blender/modifiers/intern/MOD_hook.c (+5, -3) (Diff)
/source/blender/modifiers/intern/MOD_laplaciandeform.c (+5, -6) (Diff)
/source/blender/modifiers/intern/MOD_laplaciansmooth.c (+5, -6) (Diff)
/source/blender/modifiers/intern/MOD_lattice.c (+5, -1) (Diff)
/source/blender/modifiers/intern/MOD_mask.cc (+11, -1) (Diff)
/source/blender/modifiers/intern/MOD_meshcache.c (+3, -9) (Diff)
/source/blender/modifiers/intern/MOD_meshdeform.c (+4, -1) (Diff)
/source/blender/modifiers/intern/MOD_meshsequencecache.c (+3, -8) (Diff)
/source/blender/modifiers/intern/MOD_mirror.c (+4, -3) (Diff)
/source/blender/modifiers/intern/MOD_multires.c (+4, -8) (Diff)
/source/blender/modifiers/intern/MOD_normal_edit.c (+3, -4) (Diff)
/source/blender/modifiers/intern/MOD_ocean.c (+4, -40) (Diff)
/source/blender/modifiers/intern/MOD_particleinstance.c (+4, -11) (Diff)
/source/blender/modifiers/intern/MOD_particlesystem.c (+6, -4) (Diff)
/source/blender/modifiers/intern/MOD_remesh.c (+4, -8) (Diff)
/source/blender/modifiers/intern/MOD_screw.c (+10, -13) (Diff)
/source/blender/modifiers/intern/MOD_shrinkwrap.c (+4, -5) (Diff)
/source/blender/modifiers/intern/MOD_simpledeform.c (+3, -7) (Diff)
/source/blender/modifiers/intern/MOD_simulation.cc (+11, -1) (Diff)
/source/blender/modifiers/intern/MOD_skin.c (+6, -5) (Diff)
/source/blender/modifiers/intern/MOD_smooth.c (+4, -4) (Diff)
/source/blender/modifiers/intern/MOD_solidify.c (+9, -12) (Diff)
/source/blender/modifiers/intern/MOD_subsurf.c (+4, -6) (Diff)
/source/blender/modifiers/intern/MOD_surface.c (+4, -4) (Diff)
/source/blender/modifiers/intern/MOD_surfacedeform.c (+5, -5) (Diff)
/source/blender/modifiers/intern/MOD_triangulate.c (+7, -3) (Diff)
/source/blender/modifiers/intern/MOD_uvproject.c (+4, -3) (Diff)
/source/blender/modifiers/intern/MOD_uvwarp.c (+5, -4) (Diff)
/source/blender/modifiers/intern/MOD_warp.c (+5, -5) (Diff)
/source/blender/modifiers/intern/MOD_wave.c (+4, -15) (Diff)
/source/blender/modifiers/intern/MOD_weighted_normal.c (+5, -4) (Diff)
/source/blender/modifiers/intern/MOD_weightvgedit.c (+7, -10) (Diff)
/source/blender/modifiers/intern/MOD_weightvgmix.c (+3, -7) (Diff)
/source/blender/modifiers/intern/MOD_weightvgproximity.c (+3, -8) (Diff)
/source/blender/modifiers/intern/MOD_weld.c (+4, -2) (Diff)
/source/blender/modifiers/intern/MOD_wireframe.c (+5, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021