Fix: Line Art panel in properties showing in the wrong order with add-ons

It should set bl_order to show below panels registered by render engine add-ons
like Cycles.
This commit is contained in:
Brecht Van Lommel 2021-03-29 16:27:18 +02:00
parent 2e7e13442c
commit bc872e0c8e
3 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,7 @@ class COLLECTION_PT_instancing(CollectionButtonsPanel, Panel):
class COLLECTION_PT_lineart_collection(CollectionButtonsPanel, Panel):
bl_label = "Line Art"
bl_order = 10
def draw(self, context):
layout = self.layout

View File

@ -277,6 +277,7 @@ class MATERIAL_PT_viewport(MaterialButtonsPanel, Panel):
class MATERIAL_PT_lineart(MaterialButtonsPanel, Panel):
bl_label = "Line Art"
bl_options = {'DEFAULT_CLOSED'}
bl_order = 10
@classmethod
def poll(cls, context):

View File

@ -311,6 +311,7 @@ class OBJECT_PT_instancing_size(ObjectButtonsPanel, Panel):
class OBJECT_PT_lineart(ObjectButtonsPanel, Panel):
bl_label = "Line Art"
bl_options = {'DEFAULT_CLOSED'}
bl_order = 10
@classmethod
def poll(cls, context):