[Bf-blender-cvs] [8a99bc08294] sculpt-dev: Sculpt: couple of small ui tweaks

Joseph Eagar noreply at git.blender.org
Tue Sep 28 19:26:35 CEST 2021


Commit: 8a99bc0829430eb84566751c2bcba69887cbb2bd
Author: Joseph Eagar
Date:   Tue Sep 28 10:26:20 2021 -0700
Branches: sculpt-dev
https://developer.blender.org/rB8a99bc0829430eb84566751c2bcba69887cbb2bd

Sculpt: couple of small ui tweaks

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

M	release/scripts/startup/bl_operators/wm.py
M	release/scripts/startup/bl_ui/properties_paint_common.py
M	release/scripts/startup/bl_ui/space_view3d_toolbar.py
M	source/blender/blenkernel/intern/brush_engine_presets.c

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

diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index 6af86e75b8a..81809cad3f0 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -2614,6 +2614,22 @@ class WM_OT_batch_rename(Operator):
         return wm.invoke_props_dialog(self, width=400)
 
 
+def show_build_notes(layout):
+    msg = """
+Build Notes:
+
+Please report broken brushes and hotkeys at the
+link below.
+
+""".strip()
+
+    for line in msg.split("\n"):
+        layout.label(text=line)
+
+    url = "https://blender.chat/channel/sculpt-paint-texture-module"
+    props = layout.operator("wm.url_open", text=url)
+    props.url = url
+
 class WM_MT_splash_quick_setup(Menu):
     bl_label = "Quick Setup"
 
@@ -2625,6 +2641,7 @@ class WM_MT_splash_quick_setup(Menu):
 
         layout.operator_context = 'EXEC_DEFAULT'
 
+        show_build_notes(layout)
         layout.label(text="Quick Setup")
 
         split = layout.split(factor=0.25)
@@ -2714,6 +2731,7 @@ class WM_MT_splash(Menu):
         layout.operator_context = 'EXEC_DEFAULT'
         layout.emboss = 'PULLDOWN_MENU'
 
+        show_build_notes(layout)
         split = layout.split()
 
         # Templates
@@ -2766,6 +2784,7 @@ class WM_MT_splash_about(Menu):
         layout = self.layout
         layout.operator_context = 'EXEC_DEFAULT'
 
+        show_build_notes(layout)
         split = layout.split(factor=0.65)
 
         col = split.column(align=True)
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py
index 036b2db86ab..df1dbd5b655 100644
--- a/release/scripts/startup/bl_ui/properties_paint_common.py
+++ b/release/scripts/startup/bl_ui/properties_paint_common.py
@@ -224,7 +224,7 @@ class UnifiedPaintPanel:
             text = ch.name
 
         if len(text) == 0: #auto-generate from idname
-            s = prop_name.lower().replace("_", " ").split(" ");
+            s = prop_name.lower().replace("_", " ").split(" ")
             text = ''
             for k in s:
                 text += k[0].upper() + k[1:] + " "
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index d2832aefdc7..820684a08d2 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1058,7 +1058,7 @@ class VIEW3D_PT_sculpt_dyntopo(Panel, View3DPaintPanel):
         col = layout.column()
         col.active = context.sculpt_object.use_dynamic_topology_sculpting
 
-        col.prop(sculpt, "use_dyntopo");
+        col.prop(sculpt, "use_dyntopo")
 
         sub = col.column()
         sub.active = (brush and brush.sculpt_tool != 'MASK')
@@ -1145,7 +1145,7 @@ class VIEW3D_PT_sculpt_dyntopo(Panel, View3DPaintPanel):
         UnifiedPaintPanel.channel_unified(layout, context, brush, "dyntopo_radius_scale", slider=True, ui_editing=False)
         
         #col.prop(sculpt, "dyntopo_spacing")
-        #col.prop(sculpt, "dyntopo_radius_scale");
+        #col.prop(sculpt, "dyntopo_radius_scale")
 
 
 class VIEW3D_PT_sculpt_voxel_remesh(Panel, View3DPaintPanel):
diff --git a/source/blender/blenkernel/intern/brush_engine_presets.c b/source/blender/blenkernel/intern/brush_engine_presets.c
index 4cc3ac0db1d..ec1bfe184c7 100644
--- a/source/blender/blenkernel/intern/brush_engine_presets.c
+++ b/source/blender/blenkernel/intern/brush_engine_presets.c
@@ -996,7 +996,7 @@ void BKE_brush_channelset_ui_init(Brush *brush, int tool)
             SCULPT_TOOL_PAINT,
             SCULPT_TOOL_SMEAR,
             SCULPT_TOOL_VCOL_BOUNDARY)) {
-    SHOWALL(hard_edge_mode);
+    SHOWWRK(hard_edge_mode);
   }
 
   if (!ELEM(tool,



More information about the Bf-blender-cvs mailing list