Page MenuHome

UV Editor, additional Pixel snapping modes
ClosedPublic

Authored by Joep Peters (Joep) on Tue, Jan 1, 12:22 PM.

Details

Summary

This revision adds functionality to choose either between corner, center or no pixel snapping while editing UVs. It replaces the current Snap to Pixels feature (which only snaps to corners) and makes the SI_PIXELSNAP flag deprecated.

Diff Detail

Repository
rB Blender

Event Timeline

Joep Peters (Joep) edited the summary of this revision. (Show Details)Tue, Jan 1, 3:48 PM

The calculation of offset has to be done only once, moved it out of the for loop.

I'll commit with some tweaks.

This revision is now accepted and ready to land.Tue, Jan 22, 5:03 PM
This revision was automatically updated to reflect the committed changes.

@Brecht Van Lommel (brecht) Thank you for your review! I'm super happy now! :)

Why would you want to snap to the center of a pixel?