Blender Git Loki
Git Commits -> Revision ba4a2a4
Revision ba4a2a4 by Hans Goudey (master) September 2, 2020, 19:13 (GMT) |
UI: Use instanced panel custom data instead of list index For modifier shortcuts we added a "custom_data" field to panels. This commit uses the same system for accessing the list data that corresponds to each panel. This way the context is only used once and the modifier for each panel can be accessed more easily later. This ends up being mostly a cleanup commit with a few small changes in interface_panel.c. The large changes in the UI functions are due to the fact that the panel custom data is now passed around as a single pointer instead of being created again for every panel. The list_index variable in Panel.runtime is removed as it's now unnecessary. Differential Revision: https://developer.blender.org/D8559 |
Commit Details:
Full Hash: ba4a2a4c8b827201b18e97d9dd025ef93a4db754
Parent Commit: ff7d742
Lines Changed: +1430, -1618
94 Modified Paths:
/release/scripts/startup/bl_ui/properties_constraint.py (+2, -10) (Diff)
/source/blender/editors/include/UI_interface.h (+3, -2) (Diff)
/source/blender/editors/interface/interface_panel.c (+15, -15) (Diff)
/source/blender/editors/interface/interface_templates.c (+14, -16) (Diff)
/source/blender/editors/screen/area.c (+3, -3) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c (+9, -10) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilarray.c (+34, -42) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c (+22, -25) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilcolor.c (+9, -10) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilhook.c (+20, -22) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencillattice.c (+12, -13) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c (+9, -10) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilmultiply.c (+18, -21) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c (+18, -21) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpenciloffset.c (+8, -9) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilopacity.c (+18, -22) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilsimplify.c (+11, -12) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c (+11, -12) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilsubdiv.c (+7, -8) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpenciltexture.c (+13, -14) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c (+9, -10) (Diff)
/source/blender/gpencil_modifiers/intern/mod_gpenciltime.c (+20, -23) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c (+13, -14) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencil_ui_common.c (+51, -60) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencil_ui_common.h (+5, -10) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+1, -2) (Diff)
/source/blender/makesrna/intern/rna_ui.c (+21, -3) (Diff)
/source/blender/modifiers/intern/MOD_armature.c (+9, -10) (Diff)
/source/blender/modifiers/intern/MOD_array.c (+45, -56) (Diff)
/source/blender/modifiers/intern/MOD_bevel.c (+41, -45) (Diff)
/source/blender/modifiers/intern/MOD_boolean.c (+9, -10) (Diff)
/source/blender/modifiers/intern/MOD_build.c (+13, -16) (Diff)
/source/blender/modifiers/intern/MOD_cast.c (+15, -16) (Diff)
/source/blender/modifiers/intern/MOD_cloth.c (+3, -4) (Diff)
/source/blender/modifiers/intern/MOD_collision.c (+3, -4) (Diff)
/source/blender/modifiers/intern/MOD_correctivesmooth.c (+13, -14) (Diff)
/source/blender/modifiers/intern/MOD_curve.c (+6, -7) (Diff)
/source/blender/modifiers/intern/MOD_datatransfer.c (+62, -75) (Diff)
/source/blender/modifiers/intern/MOD_decimate.c (+17, -18) (Diff)
/source/blender/modifiers/intern/MOD_displace.c (+16, -17) (Diff)
/source/blender/modifiers/intern/MOD_dynamicpaint.c (+3, -4) (Diff)
/source/blender/modifiers/intern/MOD_edgesplit.c (+7, -8) (Diff)
/source/blender/modifiers/intern/MOD_explode.c (+12, -13) (Diff)
/source/blender/modifiers/intern/MOD_fluid.c (+3, -4) (Diff)
/source/blender/modifiers/intern/MOD_hook.c (+16, -18) (Diff)
/source/blender/modifiers/intern/MOD_laplaciandeform.c (+7, -8) (Diff)
/source/blender/modifiers/intern/MOD_laplaciansmooth.c (+12, -13) (Diff)
/source/blender/modifiers/intern/MOD_lattice.c (+6, -7) (Diff)
/source/blender/modifiers/intern/MOD_mask.cc (+9, -10) (Diff)
/source/blender/modifiers/intern/MOD_meshcache.c (+25, -28) (Diff)
/source/blender/modifiers/intern/MOD_meshdeform.c (+8, -9) (Diff)
/source/blender/modifiers/intern/MOD_meshsequencecache.c (+7, -8) (Diff)
/source/blender/modifiers/intern/MOD_mirror.c (+34, -36) (Diff)
/source/blender/modifiers/intern/MOD_multires.c (+25, -30) (Diff)
/source/blender/modifiers/intern/MOD_normal_edit.c (+21, -24) (Diff)
/source/blender/modifiers/intern/MOD_ocean.c (+57, -66) (Diff)
/source/blender/modifiers/intern/MOD_particleinstance.c (+32, -36) (Diff)
/source/blender/modifiers/intern/MOD_particlesystem.c (+4, -5) (Diff)
/source/blender/modifiers/intern/MOD_remesh.c (+14, -16) (Diff)
/source/blender/modifiers/intern/MOD_screw.c (+23, -25) (Diff)
/source/blender/modifiers/intern/MOD_shrinkwrap.c (+21, -22) (Diff)
/source/blender/modifiers/intern/MOD_simpledeform.c (+18, -20) (Diff)
/source/blender/modifiers/intern/MOD_simulation.cc (+5, -6) (Diff)
/source/blender/modifiers/intern/MOD_skin.c (+8, -9) (Diff)
/source/blender/modifiers/intern/MOD_smooth.c (+9, -10) (Diff)
/source/blender/modifiers/intern/MOD_softbody.c (+3, -4) (Diff)
/source/blender/modifiers/intern/MOD_solidify.c (+44, -50) (Diff)
/source/blender/modifiers/intern/MOD_subsurf.c (+18, -17) (Diff)
/source/blender/modifiers/intern/MOD_surface.c (+3, -4) (Diff)
/source/blender/modifiers/intern/MOD_surfacedeform.c (+9, -10) (Diff)
/source/blender/modifiers/intern/MOD_triangulate.c (+7, -8) (Diff)
/source/blender/modifiers/intern/MOD_ui_common.c (+32, -34) (Diff)
/source/blender/modifiers/intern/MOD_ui_common.h (+2, -4) (Diff)
/source/blender/modifiers/intern/MOD_uvproject.c (+10, -11) (Diff)
/source/blender/modifiers/intern/MOD_uvwarp.c (+19, -21) (Diff)
/source/blender/modifiers/intern/MOD_warp.c (+27, -30) (Diff)
/source/blender/modifiers/intern/MOD_wave.c (+35, -39) (Diff)
/source/blender/modifiers/intern/MOD_weighted_normal.c (+9, -10) (Diff)
/source/blender/modifiers/intern/MOD_weightvgedit.c (+22, -25) (Diff)
/source/blender/modifiers/intern/MOD_weightvgmix.c (+12, -15) (Diff)
/source/blender/modifiers/intern/MOD_weightvgproximity.c (+17, -20) (Diff)
/source/blender/modifiers/intern/MOD_weld.c (+6, -7) (Diff)
/source/blender/modifiers/intern/MOD_wireframe.c (+18, -20) (Diff)
/source/blender/shader_fx/intern/FX_shader_blur.c (+8, -9) (Diff)
/source/blender/shader_fx/intern/FX_shader_colorize.c (+8, -9) (Diff)
/source/blender/shader_fx/intern/FX_shader_flip.c (+5, -6) (Diff)
/source/blender/shader_fx/intern/fx_shader_glow.c (+14, -15) (Diff)
/source/blender/shader_fx/intern/FX_shader_pixel.c (+7, -8) (Diff)
/source/blender/shader_fx/intern/FX_shader_rim.c (+15, -17) (Diff)
/source/blender/shader_fx/intern/FX_shader_shadow.c (+27, -31) (Diff)
/source/blender/shader_fx/intern/FX_shader_swirl.c (+6, -8) (Diff)
/source/blender/shader_fx/intern/FX_shader_wave.c (+7, -8) (Diff)
/source/blender/shader_fx/intern/FX_ui_common.c (+24, -28) (Diff)
/source/blender/shader_fx/intern/FX_ui_common.h (+2, -4) (Diff)
/source/blender/editors/include/UI_interface.h (+3, -2) (Diff)
/source/blender/editors/interface/interface_panel.c (+15, -15) (Diff)
/source/blender/editors/interface/interface_templates.c (+14, -16) (Diff)
/source/blender/editors/screen/area.c (+3, -3) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c (+9, -10) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilarray.c (+34, -42) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c (+22, -25) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilcolor.c (+9, -10) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilhook.c (+20, -22) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencillattice.c (+12, -13) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c (+9, -10) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilmultiply.c (+18, -21) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c (+18, -21) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpenciloffset.c (+8, -9) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilopacity.c (+18, -22) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilsimplify.c (+11, -12) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c (+11, -12) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilsubdiv.c (+7, -8) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpenciltexture.c (+13, -14) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c (+9, -10) (Diff)
/source/blender/gpencil_modifiers/intern/mod_gpenciltime.c (+20, -23) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c (+13, -14) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencil_ui_common.c (+51, -60) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencil_ui_common.h (+5, -10) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+1, -2) (Diff)
/source/blender/makesrna/intern/rna_ui.c (+21, -3) (Diff)
/source/blender/modifiers/intern/MOD_armature.c (+9, -10) (Diff)
/source/blender/modifiers/intern/MOD_array.c (+45, -56) (Diff)
/source/blender/modifiers/intern/MOD_bevel.c (+41, -45) (Diff)
/source/blender/modifiers/intern/MOD_boolean.c (+9, -10) (Diff)
/source/blender/modifiers/intern/MOD_build.c (+13, -16) (Diff)
/source/blender/modifiers/intern/MOD_cast.c (+15, -16) (Diff)
/source/blender/modifiers/intern/MOD_cloth.c (+3, -4) (Diff)
/source/blender/modifiers/intern/MOD_collision.c (+3, -4) (Diff)
/source/blender/modifiers/intern/MOD_correctivesmooth.c (+13, -14) (Diff)
/source/blender/modifiers/intern/MOD_curve.c (+6, -7) (Diff)
/source/blender/modifiers/intern/MOD_datatransfer.c (+62, -75) (Diff)
/source/blender/modifiers/intern/MOD_decimate.c (+17, -18) (Diff)
/source/blender/modifiers/intern/MOD_displace.c (+16, -17) (Diff)
/source/blender/modifiers/intern/MOD_dynamicpaint.c (+3, -4) (Diff)
/source/blender/modifiers/intern/MOD_edgesplit.c (+7, -8) (Diff)
/source/blender/modifiers/intern/MOD_explode.c (+12, -13) (Diff)
/source/blender/modifiers/intern/MOD_fluid.c (+3, -4) (Diff)
/source/blender/modifiers/intern/MOD_hook.c (+16, -18) (Diff)
/source/blender/modifiers/intern/MOD_laplaciandeform.c (+7, -8) (Diff)
/source/blender/modifiers/intern/MOD_laplaciansmooth.c (+12, -13) (Diff)
/source/blender/modifiers/intern/MOD_lattice.c (+6, -7) (Diff)
/source/blender/modifiers/intern/MOD_mask.cc (+9, -10) (Diff)
/source/blender/modifiers/intern/MOD_meshcache.c (+25, -28) (Diff)
/source/blender/modifiers/intern/MOD_meshdeform.c (+8, -9) (Diff)
/source/blender/modifiers/intern/MOD_meshsequencecache.c (+7, -8) (Diff)
/source/blender/modifiers/intern/MOD_mirror.c (+34, -36) (Diff)
/source/blender/modifiers/intern/MOD_multires.c (+25, -30) (Diff)
/source/blender/modifiers/intern/MOD_normal_edit.c (+21, -24) (Diff)
/source/blender/modifiers/intern/MOD_ocean.c (+57, -66) (Diff)
/source/blender/modifiers/intern/MOD_particleinstance.c (+32, -36) (Diff)
/source/blender/modifiers/intern/MOD_particlesystem.c (+4, -5) (Diff)
/source/blender/modifiers/intern/MOD_remesh.c (+14, -16) (Diff)
/source/blender/modifiers/intern/MOD_screw.c (+23, -25) (Diff)
/source/blender/modifiers/intern/MOD_shrinkwrap.c (+21, -22) (Diff)
/source/blender/modifiers/intern/MOD_simpledeform.c (+18, -20) (Diff)
/source/blender/modifiers/intern/MOD_simulation.cc (+5, -6) (Diff)
/source/blender/modifiers/intern/MOD_skin.c (+8, -9) (Diff)
/source/blender/modifiers/intern/MOD_smooth.c (+9, -10) (Diff)
/source/blender/modifiers/intern/MOD_softbody.c (+3, -4) (Diff)
/source/blender/modifiers/intern/MOD_solidify.c (+44, -50) (Diff)
/source/blender/modifiers/intern/MOD_subsurf.c (+18, -17) (Diff)
/source/blender/modifiers/intern/MOD_surface.c (+3, -4) (Diff)
/source/blender/modifiers/intern/MOD_surfacedeform.c (+9, -10) (Diff)
/source/blender/modifiers/intern/MOD_triangulate.c (+7, -8) (Diff)
/source/blender/modifiers/intern/MOD_ui_common.c (+32, -34) (Diff)
/source/blender/modifiers/intern/MOD_ui_common.h (+2, -4) (Diff)
/source/blender/modifiers/intern/MOD_uvproject.c (+10, -11) (Diff)
/source/blender/modifiers/intern/MOD_uvwarp.c (+19, -21) (Diff)
/source/blender/modifiers/intern/MOD_warp.c (+27, -30) (Diff)
/source/blender/modifiers/intern/MOD_wave.c (+35, -39) (Diff)
/source/blender/modifiers/intern/MOD_weighted_normal.c (+9, -10) (Diff)
/source/blender/modifiers/intern/MOD_weightvgedit.c (+22, -25) (Diff)
/source/blender/modifiers/intern/MOD_weightvgmix.c (+12, -15) (Diff)
/source/blender/modifiers/intern/MOD_weightvgproximity.c (+17, -20) (Diff)
/source/blender/modifiers/intern/MOD_weld.c (+6, -7) (Diff)
/source/blender/modifiers/intern/MOD_wireframe.c (+18, -20) (Diff)
/source/blender/shader_fx/intern/FX_shader_blur.c (+8, -9) (Diff)
/source/blender/shader_fx/intern/FX_shader_colorize.c (+8, -9) (Diff)
/source/blender/shader_fx/intern/FX_shader_flip.c (+5, -6) (Diff)
/source/blender/shader_fx/intern/fx_shader_glow.c (+14, -15) (Diff)
/source/blender/shader_fx/intern/FX_shader_pixel.c (+7, -8) (Diff)
/source/blender/shader_fx/intern/FX_shader_rim.c (+15, -17) (Diff)
/source/blender/shader_fx/intern/FX_shader_shadow.c (+27, -31) (Diff)
/source/blender/shader_fx/intern/FX_shader_swirl.c (+6, -8) (Diff)
/source/blender/shader_fx/intern/FX_shader_wave.c (+7, -8) (Diff)
/source/blender/shader_fx/intern/FX_ui_common.c (+24, -28) (Diff)
/source/blender/shader_fx/intern/FX_ui_common.h (+2, -4) (Diff)