[Bf-blender-cvs] [7a2b20349ae] master: UI: add entry to show/hide tool settings bar to the View menu

Brecht Van Lommel noreply at git.blender.org
Mon May 20 15:37:30 CEST 2019


Commit: 7a2b20349ae28c8dd8a096208a4456a2f7127ea4
Author: Brecht Van Lommel
Date:   Mon May 20 15:34:45 2019 +0200
Branches: master
https://developer.blender.org/rB7a2b20349ae28c8dd8a096208a4456a2f7127ea4

UI: add entry to show/hide tool settings bar to the View menu

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py
index 2562ef894f7..ea698f56ad4 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -81,6 +81,7 @@ class IMAGE_MT_view(Menu):
 
         layout.prop(sima, "show_region_toolbar")
         layout.prop(sima, "show_region_ui")
+        layout.prop(view, "show_region_tool_header")
         layout.prop(sima, "show_region_hud")
 
         layout.separator()
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index ce62f47a77d..cc84d27d4d4 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -954,6 +954,7 @@ class VIEW3D_MT_view(Menu):
 
         layout.prop(view, "show_region_toolbar")
         layout.prop(view, "show_region_ui")
+        layout.prop(view, "show_region_tool_header")
         layout.prop(view, "show_region_hud")
 
         layout.separator()
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index ef6a07d1903..9ed2753853d 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -2484,7 +2484,7 @@ static void rna_def_space_generic_show_region_toggles(StructRNA *srna, int regio
 
   if (region_type_mask & (1 << RGN_TYPE_TOOL_HEADER)) {
     region_type_mask &= ~(1 << RGN_TYPE_TOOL_HEADER);
-    DEF_SHOW_REGION_PROPERTY(show_region_tool_header, "Tool Header", "");
+    DEF_SHOW_REGION_PROPERTY(show_region_tool_header, "Tool Settings", "");
   }
   if (region_type_mask & (1 << RGN_TYPE_HEADER)) {
     region_type_mask &= ~(1 << RGN_TYPE_HEADER);



More information about the Bf-blender-cvs mailing list