Skip to content

Exclude meshes without selected vertices from transforms and selection center in vertex/edge mode#3543

Open
nklbdev wants to merge 1 commit into
JannisX11:nextfrom
nklbdev:selection_center_and_transformations_only_for_selected_mesh_parts
Open

Exclude meshes without selected vertices from transforms and selection center in vertex/edge mode#3543
nklbdev wants to merge 1 commit into
JannisX11:nextfrom
nklbdev:selection_center_and_transformations_only_for_selected_mesh_parts

Conversation

@nklbdev

@nklbdev nklbdev commented May 2, 2026

Copy link
Copy Markdown
Contributor

Problem: When two meshes are selected, but vertices/edges are only selected on one of them, the other mesh still participates in Move, Rotate, and Resize operations — either by moving its entire position (global space) or all of its vertices (local space). The selection center also includes the unselected mesh, shifting the transform gizmo to an incorrect pivot.

Fix: In vertex and edge selection modes, Mesh and SplineMesh elements with no selected vertices are now skipped during all transform operations. The same guard is applied consistently across six locations:

Function File Operation
moveElementsInSpace transform.js Move (gizmo + sliders)
resizeOnAxis transform.js Resize (sliders)
onMove (resize_tool) edit_transform.js Resize (gizmo)
rotateOnAxis transform.js Rotate (gizmo)
rotateSelected transform.js Rotate (action/keybind)
getSelectionCenter transform.js Transform gizmo pivot

@nklbdev
nklbdev changed the base branch from master to next May 2, 2026 15:27
@nklbdev
nklbdev force-pushed the selection_center_and_transformations_only_for_selected_mesh_parts branch from 4deb23d to 0624a93 Compare May 18, 2026 08:48
@netlify

netlify Bot commented May 18, 2026

Copy link
Copy Markdown

Deploy Preview for blockbench-dev ready!

Name Link
🔨 Latest commit 54a64d8
🔍 Latest deploy log https://app.netlify.com/projects/blockbench-dev/deploys/6a0ae32c82750700089f062a
😎 Deploy Preview https://deploy-preview-3543--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 selection_center_and_transformations_only_for_selected_mesh_parts branch from 0624a93 to 54a64d8 Compare May 18, 2026 10:00
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