Rightclick menu when sculpting could use resolution setting

Since the introduction of rightclick menu (context menu) when painting/sculpting/etc, I thought it would be a good idea to get “resolution” in the sculpt context menu too! Saves a lot of time!

here’s the diff… anyone with me?

diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 06626c67bc9..e333ad17994 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -5864,8 +5864,15 @@ class VIEW3D_PT_sculpt_context_menu(Panel):
     def draw(self, context):
         layout = self.layout
 
-        brush = context.tool_settings.sculpt.brush
+        sculpt = context.tool_settings.sculpt
+        brush = sculpt.brush
         capabilities = brush.sculpt_capabilities
+        if sculpt.detail_type_method in {'CONSTANT', 'MANUAL'}:
+            layout.prop(sculpt, "constant_detail_resolution", slider=True)
+        elif (sculpt.detail_type_method == 'BRUSH'):
+            layout.prop(sculpt, "detail_percent", slider=True)
+        else:
+            layout.prop(sculpt, "detail_size", slider=True)
 
         UnifiedPaintPanel.prop_unified_size(layout, context, brush, "size", slider=True)
         UnifiedPaintPanel.prop_unified_strength(layout, context, brush, "strength")
2 Likes

:+1: I’d welcome this in Blender 2.81.

1 Like