[Bf-blender-cvs] [53d152258e9] blender2.8: UI: particle deflector options in topbar

Campbell Barton noreply at git.blender.org
Wed Oct 17 09:57:01 CEST 2018


Commit: 53d152258e9fcaee2168a92e39df9c3a71b7f43a
Author: Campbell Barton
Date:   Wed Oct 17 18:52:11 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB53d152258e9fcaee2168a92e39df9c3a71b7f43a

UI: particle deflector options in topbar

See: T57228

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 0f68b16f71a..3aeb3330afb 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -303,6 +303,15 @@ class _draw_left_context_mode:
                     elif tool == 'PUFF':
                         layout.row().prop(brush, "puff_mode", expand=True)
                         layout.prop(brush, "use_puff_volume")
+                    elif tool == 'COMB':
+                        # Note: actually in 'Options' panel,
+                        # disabled when used in popover.
+                        row = layout.row()
+                        row.active = settings.is_editable
+                        row.prop(settings, "use_emitter_deflect", text="Deflect Emitter")
+                        sub = row.row(align=True)
+                        sub.active = settings.use_emitter_deflect
+                        sub.prop(settings, "emitter_distance", text="Distance")
 
     class IMAGE_EDITOR:
         def VIEW(context, layout, tool):



More information about the Bf-blender-cvs mailing list