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.

VDM Stamp rotation: brush_alpha_options reports 'VDM: angle A, jitter J' (no tile) while the VDM brush is the brush

islandmede08d806916fe
diff --git a/src/app/BrushSettingsUi.cpp b/src/app/BrushSettingsUi.cpp
index 5cb4e1c6..4e5ffd75 100644
--- a/src/app/BrushSettingsUi.cpp
+++ b/src/app/BrushSettingsUi.cpp
@@ -224,6 +224,10 @@ void App::registerAlphaOptionsCommand() {
o.tileX = int(std::lround(argNumber(a, "tile_x", o.tileX)));
o.tileY = int(std::lround(argNumber(a, "tile_y", o.tileY)));
syncAlphaTile();
+ if (vdmBrushActive()) // the VDM brush's Stamp rotation (#136): no tiling there
+ return {true, std::string("VDM: ") + (o.followStroke ? "follows the drag, " : "") + "angle " +
+ std::to_string(int(std::lround(o.angle))) + ", jitter " +
+ std::to_string(int(std::lround(o.jitter)))};
return {true, std::string("Alpha: ") + (o.followStroke ? "follows the stroke, " : "") + "angle " +
std::to_string(int(std::lround(o.angle))) + ", jitter " +
std::to_string(int(std::lround(o.jitter))) + ", tile " +
diff --git a/tests/ui/vdm_rotation.sfui b/tests/ui/vdm_rotation.sfui
index 437bd9b1..8d60e250 100644
--- a/tests/ui/vdm_rotation.sfui
+++ b/tests/ui/vdm_rotation.sfui
@@ -45,6 +45,7 @@ key ctrl+z
# Angle jitter: each stamp its own turn, within the range around Angle.
run brush_alpha_options follow_stroke=false angle=0 angle_jitter=90
+expect_status VDM: angle 0, jitter 90
stroke 0.5 0.5 0.62 0.5
remember last_dab_angle first
expect_value last_dab_angle >= -90