Blender Git Commit Log
Git Commits -> Revision ca717f0
Revision ca717f0 by Philipp Oeser (master) March 10, 2020, 12:47 (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: ca717f0489af6854f3f4bedb3c1e82ea0a8dff1c
Parent Commit: 212660f
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)
/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)