From b00712001075abd383af7d88252ee199b5991231 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Sun, 24 Jul 2022 05:31:12 +0200 Subject: Amaranth: Fix File Browser features showing up in Asset Browser Both the "Libraries" panel and the "Current Blend's Folder" button are meant for the File Browser editor, not the Asset Browser. Fixes T94212 --- amaranth/scene/current_blend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'amaranth/scene/current_blend.py') diff --git a/amaranth/scene/current_blend.py b/amaranth/scene/current_blend.py index 7ab855c4..11ac3679 100644 --- a/amaranth/scene/current_blend.py +++ b/amaranth/scene/current_blend.py @@ -36,7 +36,7 @@ class FILEBROWSER_PT_amaranth(bpy.types.Panel): @classmethod def poll(cls, context): - return panel_poll_is_upper_region(context.region) + return context.area.ui_type == 'FILES' and panel_poll_is_upper_region(context.region) def draw(self, context): layout = self.layout -- cgit v1.2.3