Page MenuHome

Fix T72648: Texture Paint color sampling always samples only 1st tile when using UDIMS
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Mon, Jan 13, 3:12 PM.

Details

Summary

A more generic approach might be considered (I assume there are other
operators around that need an update in shifting their uvs), this is
just to have this bug fixed.

Diff Detail

Repository
rB Blender

Event Timeline

Lukas Stockner (lukasstockner97) requested changes to this revision.Mon, Jan 13, 3:52 PM

Mostly fine, just one comment. Also, yeah, this is the correct approach so far, we might consider adding a helper function (something like BKE_image_acquire_ibuf_from_uv(Image* ima, ImageUser* iuser, float* uv)) at some point though.

source/blender/editors/sculpt_paint/paint_utils.c
525

Please use BKE_imageuser_default to initialize the ImageUser instead of zeroing it.

This revision now requires changes to proceed.Mon, Jan 13, 3:52 PM

use BKE_imageuser_default to initialize the ImageUser

This revision is now accepted and ready to land.Tue, Jan 14, 12:32 AM