Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

menu_paths.py leaves "ZBrush-style layout" notes alone (they name that layout's palettes on purpose)

islandmed277457dd7ef0
diff --git a/docs/guide/first-sculpt.md b/docs/guide/first-sculpt.md
index b1514544..9f53fe0d 100644
--- a/docs/guide/first-sculpt.md
+++ b/docs/guide/first-sculpt.md
@@ -58,7 +58,7 @@ are there. Every step can be undone with <kbd>Ctrl</kbd>+<kbd>Z</kbd>, so experi
> **Tip:** colour sticks to the surface, so it follows the shape when you sculpt it next.
-> **ZBrush-style layout:** the colour controls are in the **Paint** menu on the palette bar; **Masking** is in
+> **ZBrush-style layout:** the colour controls are in the **Color** palette on the palette bar; **Masking** is in
> the **Tool** palette.
## 4. Pull out the cap
@@ -175,7 +175,7 @@ are there. Every step can be undone with <kbd>Ctrl</kbd>+<kbd>Z</kbd>, so experi
![Render > Materials with PBR shading and Save Render](images/first-sculpt/12-material.jpg)
-> **ZBrush-style layout:** **PBR** and **Save Render** are in **Render > Materials**.
+> **ZBrush-style layout:** **PBR** and **Save Render** are in the **Material** palette.
Well done: that's a sculpt, painted and rendered.
diff --git a/tools/guide/menu_paths.py b/tools/guide/menu_paths.py
index 012f4c60..660f41ce 100644
--- a/tools/guide/menu_paths.py
+++ b/tools/guide/menu_paths.py
@@ -55,7 +55,13 @@ BOLD_NAME = re.compile(r"\*\*(" + "|".join(MENUS) + r")\*\* palette\b") # "the
def convert(text: str) -> str:
out = []
+ zbrush_note = False
for line in text.split("\n"):
+ # "> **ZBrush-style layout:** ..." notes name the palettes of that layout on purpose.
+ zbrush_note = line.startswith("> **ZBrush-style layout") or (zbrush_note and line.startswith(">"))
+ if zbrush_note:
+ out.append(line)
+ continue
line = BOLD_NAME.sub(r"\1 palette", line)
if line.startswith("| ") and line.count("|") > 2:
# Tables: leave the first cell (other apps' names in the glossary and the ZBrush chapter).