Blender Git Commit Log

Git Commits -> Revision d12b376

Revision d12b376 by Antonio Vazquez (master)
October 11, 2018, 16:30 (GMT)
Add new parameter to reverse UIList items

Now, it was possible to invert the order of the UIlist using the filter, but it was impossible to know if the list was inverted or not.

The problem with this is that any other element depending of this value could not be adjusted.

See https://devtalk.blender.org/t/how-to-access-uilist-properties/2268

The new parameter allows to set the reverse order by default. When the list is set as reverse, it cannot be inverted again, so the invert button is removed of the filter.

This change is needed to fix a requested feature for Grease Pencil (T56985) and because a lot of 2D softwares use the drawing layers in the inverse order used in Blender.

Commit Details:

Full Hash: d12b3767f81d62a802411a42037d580a98923349
Parent Commit: cc1d6b8
Lines Changed: +26, -15

7 Modified Paths:

/source/blender/blenkernel/BKE_screen.h (+1, -1) (Diff)
/source/blender/editors/include/UI_interface.h (+1, -1) (Diff)
/source/blender/editors/interface/interface_templates.c (+15, -7) (Diff)
/source/blender/editors/space_node/drawnode.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_buttons.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_ui.c (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+2, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021