[Bf-blender-cvs] [d934a78d103] soc-2019-outliner: Outliner: Sync select toggle tweaks

Nathan Craddock noreply at git.blender.org
Wed Aug 14 22:18:35 CEST 2019


Commit: d934a78d1035916b6e4e02d305f886c14b9c2c6a
Author: Nathan Craddock
Date:   Wed Aug 14 13:43:02 2019 -0600
Branches: soc-2019-outliner
https://developer.blender.org/rBd934a78d1035916b6e4e02d305f886c14b9c2c6a

Outliner: Sync select toggle tweaks

Move the toggle lower in the popover as this toggle is not as
important. Also use a checkbox rather than button.

The toggle is still drawn as a button with an icon when the outliner
is in sequence display mode, as the filter popover is not drawn
in that mode.

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

M	release/scripts/startup/bl_ui/space_outliner.py
M	source/blender/makesrna/intern/rna_space.c

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

diff --git a/release/scripts/startup/bl_ui/space_outliner.py b/release/scripts/startup/bl_ui/space_outliner.py
index f3e8d322a7b..7bf203d8e39 100644
--- a/release/scripts/startup/bl_ui/space_outliner.py
+++ b/release/scripts/startup/bl_ui/space_outliner.py
@@ -48,7 +48,7 @@ class OUTLINER_HT_header(Header):
 
         if display_mode == 'SEQUENCE':
             row = layout.row(align=True)
-            row.prop(space, "use_sync_select", text="")
+            row.prop(space, "use_sync_select", icon="UV_SYNC_SELECT", text="")
 
         row = layout.row(align=True)
         if display_mode in {'SCENES', 'VIEW_LAYER'}:
@@ -307,10 +307,6 @@ class OUTLINER_PT_filter(Panel):
         space = context.space_data
         display_mode = space.display_mode
 
-        row = layout.row(align=True)
-        row.prop(space, "use_sync_select", text="Sync Selection")
-        layout.separator()
-
         if display_mode == 'VIEW_LAYER':
             layout.label(text="Restriction Toggles:")
             row = layout.row(align=True)
@@ -336,6 +332,10 @@ class OUTLINER_PT_filter(Panel):
             col.prop(space, "use_sort_alpha")
             layout.separator()
 
+        row = layout.row(align=True)
+        row.prop(space, "use_sync_select", text="Sync Selection")
+        layout.separator()
+
         col = layout.column(align=True)
         col.label(text="Search:")
         col.prop(space, "use_filter_complete", text="Exact Match")
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 3aeaf0ba397..ef4406db84d 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -2820,7 +2820,6 @@ static void rna_def_space_outliner(BlenderRNA *brna)
   RNA_def_property_boolean_sdna(prop, NULL, "flag", SO_SYNC_SELECT);
   RNA_def_property_ui_text(
       prop, "Sync Outliner Selection", "Sync outliner selection with other editors");
-  RNA_def_property_ui_icon(prop, ICON_UV_SYNC_SELECT, 0);
   RNA_def_property_update(prop, NC_SPACE | ND_SPACE_OUTLINER, NULL);
 
   /* Granular restriction column option. */



More information about the Bf-blender-cvs mailing list