Blender Git Commit Log

Git Commits -> Revision 2bf4c74

Revision 2bf4c74 by Philipp Oeser (blender-v2.82-release)
March 10, 2020, 12:58 (GMT)
Fix T74425: Cannot texture paint an images sequence anymore

Caused by the introduction of UDIM (rBc30d6571bb47).

We need to make sure the tiles ImageUser is set up correctly [especially
the framenr], otherwise BKE_image_acquire_ibuf() and friends will fail
to find the correct ImBuf.

Also instead of initializing a minimal BKE_imageuser_default, now use
an appropriate ImageUser if avaliable and pass this around (instead of
just the tile_number). 2D painting can reuse the Image Editor ImageUser,
for 3D painting we still rely on a default ImageUser in most places, but
at least set the framenr correctly].

This also fixes crashes when doing image operations such as inverting or
resizing on images in a sequence in the Image Editor.

This also fixes color sampling (S) from the 3DView going wrong for image
sequences (would fallback to OpenGL sampling because an ImBuf could not
be found).

Maniphest Tasks: T74425

Differential Revision: https://developer.blender.org/D7022

Commit Details:

Full Hash: 2bf4c74130ff47c8442f23f1a9f039997dea1710
Parent Commit: c589d90
Committed By: Nathan Letwory
Lines Changed: +53, -44

7 Modified Paths:

/source/blender/editors/include/ED_paint.h (+5, -4) (Diff)
/source/blender/editors/sculpt_paint/paint_image.c (+2, -2) (Diff)
/source/blender/editors/sculpt_paint/paint_image_2d.c (+8, -7) (Diff)
/source/blender/editors/sculpt_paint/paint_image_proj.c (+10, -8) (Diff)
/source/blender/editors/sculpt_paint/paint_utils.c (+2, -0) (Diff)
/source/blender/editors/space_image/image_ops.c (+2, -2) (Diff)
/source/blender/editors/space_image/image_undo.c (+24, -21) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021