Sculpt: couple of small ui tweaks
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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:] + " "
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user