From 434acfd904a0b817e7b8f7648c0d6ae2d38cf3bb Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 19 May 2019 11:23:43 +0200 Subject: UI: add Panel.bl_order property to control order of panels for add-ons This fixes poor Cycles panel ordering, with Freestyle and Custom Properties appearing at the top. For most cases order of registration is still the easiest way to control order and it's recommended to keep using that. This is mainly to solve a few cases where we want a few built-in panels to appear below add-on panels. --- release/scripts/modules/rna_prop_ui.py | 1 + 1 file changed, 1 insertion(+) (limited to 'release/scripts/modules/rna_prop_ui.py') diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py index 12b423d637b..9660a2d29be 100644 --- a/release/scripts/modules/rna_prop_ui.py +++ b/release/scripts/modules/rna_prop_ui.py @@ -280,6 +280,7 @@ class PropertyPanel: """ bl_label = "Custom Properties" bl_options = {'DEFAULT_CLOSED'} + bl_order = 1000 # Order panel after all others @classmethod def poll(cls, context): -- cgit v1.2.3