[Bf-blender-cvs] [c4440cf783b] blender2.8: UI: add particle mode popovers

Campbell Barton noreply at git.blender.org
Mon May 7 15:02:13 CEST 2018


Commit: c4440cf783b6badfd52f54c6be1eebf40589415f
Author: Campbell Barton
Date:   Mon May 7 15:01:37 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBc4440cf783b6badfd52f54c6be1eebf40589415f

UI: add particle mode popovers

===================================================================

M	release/scripts/startup/bl_ui/space_topbar.py
M	release/scripts/startup/bl_ui/space_view3d_toolbar.py

===================================================================

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"



More information about the Bf-blender-cvs mailing list