From c4440cf783b6badfd52f54c6be1eebf40589415f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 7 May 2018 15:01:37 +0200 Subject: [PATCH] UI: add particle mode popovers --- release/scripts/startup/bl_ui/space_topbar.py | 4 ++++ release/scripts/startup/bl_ui/space_view3d_toolbar.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index 3f32038e56d..61d74b99559 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -169,6 +169,10 @@ class TOPBAR_HT_lower_bar(Header): elif mode == 'POSE': layout.popover_group(space_type='VIEW_3D', region_type='TOOLS', context=".posemode", category="") + elif mode == 'PARTICLE': + layout.popover_group(space_type='VIEW_3D', region_type='TOOLS', context=".paint_common", category="") + layout.popover_group(space_type='VIEW_3D', region_type='TOOLS', context=".particlemode", category="") + def draw_right(self, context): layout = self.layout diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 0f51c6ba587..004ea8b0e52 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1227,7 +1227,7 @@ class VIEW3D_MT_tools_projectpaint_stencil(Menu): class VIEW3D_PT_tools_particlemode(View3DPanel, Panel): """Default tools for particle mode""" - bl_context = "particlemode" + bl_context = ".particlemode" bl_label = "Options" bl_category = "Tools"