diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-01-09 17:48:09 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-01-09 17:51:46 +0300 |
commit | 90e354fd7a6989f6d93309a2af68b8bdb60434fc (patch) | |
tree | bfcb60b294a1cf5a9699f16d8171723c63212a05 /release/scripts/startup/bl_ui/properties_grease_pencil_common.py | |
parent | 1c42f1c5ca52bedec9b016edcb5fc7ff75754509 (diff) |
Revert/Redo ugly rBd12b3767f81d commit (i.e. add locked sorting option to UIList).
Too many things done wrong in original rBd12b3767f81d to list them all
here, hopefully nothing bad sneaked in again this time :|
Also cleaned up a little the 'sort by name', even though (since we only
have two options by default, sort by index and by name) we can abuse it
as a binary option for now, this is not a bitflag...
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_grease_pencil_common.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py index cefe6ca1a34..8a93014670a 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -728,7 +728,7 @@ class AnnotationDataPanel: else: layer_rows = 3 col.template_list("GPENCIL_UL_annotation_layer", "", gpd, "layers", gpd.layers, "active_index", - rows=layer_rows, reverse=True) + rows=layer_rows, sort_reverse=True, sort_lock=True) col = row.column() |