Skip to content

Fix extrude/solidify default step and inset UV computation#3545

Open
nklbdev wants to merge 1 commit into
JannisX11:nextfrom
nklbdev:fix-extrude-solidify-default-step-and-inset-uv
Open

Fix extrude/solidify default step and inset UV computation#3545
nklbdev wants to merge 1 commit into
JannisX11:nextfrom
nklbdev:fix-extrude-solidify-default-step-and-inset-uv

Conversation

@nklbdev

@nklbdev nklbdev commented May 2, 2026

Copy link
Copy Markdown
Contributor

1. Extrude, Solidify, and Spline Extrude — default step from grid settings

The initial extrude distance was hardcoded to 1, ignoring the user's grid snap settings. Now it uses getSpatialInterval(), so the default matches the configured Grid Resolution (or Shift/Ctrl resolution when held).

Action Before After
Extrude Selection extend = 1 extend = getSpatialInterval()
Solidify Selection extend = 1 extend = getSpatialInterval()
Extrude Spline extend = 1 extend = getSpatialInterval()

The amend sliders also start at the spatial interval instead of 1.

2. Inset — correct UV for the central face

The central face UVs were computed by simply copying old UVs to new vertex positions, ignoring the displacement caused by the inset. This is now fixed by calling face.localToUV(new_position) before modifying the face — so the reference triangle UVs are still intact and barycentric interpolation produces correct results.

Additionally, the UVEditor.setAutoSize() call at the end of the operation was removed. setAutoSize recomputes UVs from scratch based on 3D geometry, overwriting the correctly interpolated UVs with clamped values. It is a user-facing tool ("Auto UV" button) and does not belong as an automatic post-processing step in mesh edit operations.

@nklbdev nklbdev changed the base branch from master to next May 2, 2026 22:29
@netlify

netlify Bot commented May 18, 2026

Copy link
Copy Markdown

Deploy Preview for blockbench-dev ready!

Name Link
🔨 Latest commit 0b5449d
🔍 Latest deploy log https://app.netlify.com/projects/blockbench-dev/deploys/6a0c319f05376000086af3af
😎 Deploy Preview https://deploy-preview-3545--blockbench-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@nklbdev nklbdev force-pushed the fix-extrude-solidify-default-step-and-inset-uv branch from b84b13a to bb1c2fc Compare May 18, 2026 10:27
@nklbdev nklbdev force-pushed the fix-extrude-solidify-default-step-and-inset-uv branch from bb1c2fc to 0b5449d Compare May 19, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant