UI: add particle mode popovers

This commit is contained in:
2018-05-07 15:01:37 +02:00
parent 9f4d92bb92
commit c4440cf783
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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"