Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve UVs #45

Open
80kg-spb opened this issue Jan 9, 2025 · 1 comment
Open

Preserve UVs #45

80kg-spb opened this issue Jan 9, 2025 · 1 comment

Comments

@80kg-spb
Copy link

80kg-spb commented Jan 9, 2025

Will an option similar to "Preserve UVs" in Maya be added?
Currently, distortions appear on the UVs when using the tool.

@MightyBOBcnc
Copy link
Collaborator

MightyBOBcnc commented Jan 9, 2025

I assume you're referring to the Merge Tool? (This repo has more than one add-on in it.)

Hmm, for vertex mode this is as simple as changing line 527 or 528(?) in __init.py__ to

bpy.ops.mesh.merge(type=self.merge_location, uvs=True)

if you want it always on.

For edge mode we use bmesh.ops.weld_verts which is a lower level function that doesn't immediately appear to have a preserve UVs function. Might need to look more into this, or rewrite the way we do edge merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants