Skip to content

Fix new mesh faces getting a zero-size UV - #3830

Merged
JannisX11 merged 2 commits into
JannisX11:patchfrom
cristianchiriac:fix-create-face-auto-uv
Oct 23, 2026
Merged

JannisX11 merged 2 commits into
JannisX11:patchfrom
cristianchiriac:fix-create-face-auto-uv

Conversation

@cristianchiriac

Copy link
Copy Markdown

Fixes #3824.

Since 5.2.0, a face created with Create Face (Shift+F) from vertices with no reference face gets a zero-size UV: all of its UV points sit at 0,0.

create_face still collects those faces in faces_to_autouv, but the UVEditor.setAutoSize(null, true, faces_to_autouv) call that used the list was removed in 0b5449d ("Use spatial interval as default for extrude/solidify; fix inset UV computation"). That commit replaced the auto-UV for extrude and inset with its own UV projection, but nothing replaced it for Create Face, so the list is now built and never used. This PR restores the call.

Testing (web build, npm run serve, Generic model). I removed one face of a mesh cube, selected its 4 vertices and ran create_face:

patch (before) this branch
new quad's UV [0,0] for all 4 points [0,0] [4,0] [0,4] [4,4]
3 vertices of an existing face (reference-face path) unchanged unchanged
Ctrl+Z — removes the face, no console errors

The base branch is patch, per the contribution notes for minor fixes.

cristianchiriac and others added 2 commits October 12, 2026 01:10
Create Face collects the faces that need an automatic UV in
faces_to_autouv, but the UVEditor.setAutoSize call that used it was
removed together with the extrude/inset UV changes in 0b5449d, so a
face created from vertices without a reference face had all its UV
points at 0,0. Restore the call.

Fixes JannisX11#3824
@JannisX11
JannisX11 merged commit 13717ad into JannisX11:patch Oct 23, 2026
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.

2 participants