Blender Git Loki

Git Commits -> Revision 9b099c8

Revision 9b099c8 by Hans Goudey (master)
June 5, 2020, 14:41 (GMT)
UI: Drag and Drop Modifiers, Layout Updates

This patch implements the list panel system D7490 for modifiers.
It also moves modifier drawing to a callback in ModifierTypeInfo
in line with the extensible architecture refactoring goal T75724.

This adds a PanelRegister callback and utilities for registering
panels and subpanels. It also adds the callbacks for expansion saving
and drag and drop reordering described in D7490.

These utilities, callbacks, and other common UI elements shared
between modifiers live in MOD_ui_common.c.

Because modifier buttons are now in panels, we can make use of
subpanels for organization. The UI layouts also use the single
column layout style consistently used elsewhere in Blender.
Additionally, the mode-setting buttons are aligned and ordered
consistently with the outliner.

However, the large number of UI changes in this patch may mean
that additional polishing is required in master.

Thanks to William Reynish (@billreynish) who did a fair amount of the
layout work and to Julian Eisel (@Severin) for consistent help.

Differential Revision: https://developer.blender.org/D7498

Commit Details:

Full Hash: 9b099c86123fc828a194c59ce5b8bbf5a56f9cdb
Parent Commit: 4e70e0e
Lines Changed: +4806, -2192

2 Added Paths:

/source/blender/modifiers/intern/MOD_ui_common.c (+426, -0) (View)
/source/blender/modifiers/intern/MOD_ui_common.h (+70, -0) (View)

72 Modified Paths:

/release/scripts/startup/bl_ui/properties_data_modifier.py (+1, -1802) (Diff)
/source/blender/blenkernel/BKE_modifier.h (+10, -0) (Diff)
/source/blender/blenkernel/intern/modifier.c (+14, -1) (Diff)
/source/blender/blenloader/intern/versioning_290.c (+13, -0) (Diff)
/source/blender/editors/include/ED_object.h (+11, -6) (Diff)
/source/blender/editors/include/UI_interface.h (+1, -1) (Diff)
/source/blender/editors/interface/interface_templates.c (+29, -337) (Diff)
/source/blender/editors/object/object_intern.h (+1, -0) (Diff)
/source/blender/editors/object/object_modifier.c (+102, -6) (Diff)
/source/blender/editors/object/object_ops.c (+1, -0) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+12, -0) (Diff)
/source/blender/makesdna/DNA_modifier_types.h (+4, -2) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+27, -21) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+2, -6) (Diff)
/source/blender/modifiers/CMakeLists.txt (+10, -0) (Diff)
/source/blender/modifiers/intern/MOD_armature.c (+42, -0) (Diff)
/source/blender/modifiers/intern/MOD_array.c (+185, -0) (Diff)
/source/blender/modifiers/intern/MOD_bevel.c (+156, -0) (Diff)
/source/blender/modifiers/intern/MOD_boolean.c (+38, -0) (Diff)
/source/blender/modifiers/intern/MOD_build.c (+56, -0) (Diff)
/source/blender/modifiers/intern/MOD_cast.c (+53, -0) (Diff)
/source/blender/modifiers/intern/MOD_cloth.c (+29, -0) (Diff)
/source/blender/modifiers/intern/MOD_collision.c (+29, -0) (Diff)
/source/blender/modifiers/intern/MOD_correctivesmooth.c (+48, -0) (Diff)
/source/blender/modifiers/intern/MOD_curve.c (+35, -0) (Diff)
/source/blender/modifiers/intern/MOD_datatransfer.c (+242, -0) (Diff)
/source/blender/modifiers/intern/MOD_decimate.c (+63, -0) (Diff)
/source/blender/modifiers/intern/MOD_displace.c (+79, -0) (Diff)
/source/blender/modifiers/intern/MOD_dynamicpaint.c (+29, -0) (Diff)
/source/blender/modifiers/intern/MOD_edgesplit.c (+38, -0) (Diff)
/source/blender/modifiers/intern/MOD_explode.c (+55, -0) (Diff)
/source/blender/modifiers/intern/MOD_fluid.c (+29, -0) (Diff)
/source/blender/modifiers/intern/MOD_hook.c (+81, -0) (Diff)
/source/blender/modifiers/intern/MOD_laplaciandeform.c (+47, -0) (Diff)
/source/blender/modifiers/intern/MOD_laplaciansmooth.c (+48, -1) (Diff)
/source/blender/modifiers/intern/MOD_lattice.c (+36, -0) (Diff)
/source/blender/modifiers/intern/MOD_mask.cc (+53, -0) (Diff)
/source/blender/modifiers/intern/MOD_meshcache.c (+95, -2) (Diff)
/source/blender/modifiers/intern/MOD_meshdeform.c (+49, -0) (Diff)
/source/blender/modifiers/intern/MOD_meshsequencecache.c (+46, -1) (Diff)
/source/blender/modifiers/intern/MOD_mirror.c (+99, -0) (Diff)
/source/blender/modifiers/intern/MOD_multires.c (+120, -0) (Diff)
/source/blender/modifiers/intern/MOD_normal_edit.c (+91, -1) (Diff)
/source/blender/modifiers/intern/MOD_ocean.c (+180, -0) (Diff)
/source/blender/modifiers/intern/MOD_particleinstance.c (+135, -0) (Diff)
/source/blender/modifiers/intern/MOD_particlesystem.c (+49, -0) (Diff)
/source/blender/modifiers/intern/MOD_remesh.c (+63, -2) (Diff)
/source/blender/modifiers/intern/MOD_screw.c (+90, -0) (Diff)
/source/blender/modifiers/intern/MOD_shapekey.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_shrinkwrap.c (+71, -0) (Diff)
/source/blender/modifiers/intern/MOD_simpledeform.c (+86, -0) (Diff)
/source/blender/modifiers/intern/MOD_simulation.cc (+33, -0) (Diff)
/source/blender/modifiers/intern/MOD_skin.c (+73, -0) (Diff)
/source/blender/modifiers/intern/MOD_smooth.c (+43, -0) (Diff)
/source/blender/modifiers/intern/MOD_softbody.c (+29, -0) (Diff)
/source/blender/modifiers/intern/MOD_solidify.c (+172, -0) (Diff)
/source/blender/modifiers/intern/MOD_subsurf.c (+151, -0) (Diff)
/source/blender/modifiers/intern/MOD_surface.c (+29, -0) (Diff)
/source/blender/modifiers/intern/MOD_surfacedeform.c (+55, -2) (Diff)
/source/blender/modifiers/intern/MOD_triangulate.c (+36, -0) (Diff)
/source/blender/modifiers/intern/MOD_uvproject.c (+49, -0) (Diff)
/source/blender/modifiers/intern/MOD_uvwarp.c (+76, -0) (Diff)
/source/blender/modifiers/intern/MOD_warp.c (+117, -0) (Diff)
/source/blender/modifiers/intern/MOD_wave.c (+128, -0) (Diff)
/source/blender/modifiers/intern/MOD_weighted_normal.c (+41, -1) (Diff)
/source/blender/modifiers/intern/MOD_weightvgedit.c (+97, -0) (Diff)
/source/blender/modifiers/intern/MOD_weightvgmix.c (+60, -0) (Diff)
/source/blender/modifiers/intern/MOD_weightvgproximity.c (+71, -0) (Diff)
/source/blender/modifiers/intern/MOD_weightvg_util.c (+54, -0) (Diff)
/source/blender/modifiers/intern/MOD_weightvg_util.h (+3, -0) (Diff)
/source/blender/modifiers/intern/MOD_weld.c (+34, -0) (Diff)
/source/blender/modifiers/intern/MOD_wireframe.c (+75, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021