Blender Git Commit Log

Git Commits -> Revision fc22551

Revision fc22551 by Philipp Oeser (master)
September 23, 2021, 18:11 (GMT)
Paint: prevent RenderResults and Viewers where unappropriate

Using a RenderResult (or a Viewer) was never really working (think you
cant get a real ImBuff from these) -- cannot use it as a clone, stencil
or canvas [Single Image paint texture slot].

In the case of using it as a 2D paint clone image this would also crash
[due to the Image Editor drawing refactor in 2.91].

Now [in the spirit of T73182 / D11179], prevent using these where
unappropriate by using rna pointer polling functions.

Also add a security check for the 2D paint clone image crash in case a
stencil ImBuff cannot be provided for some reason, but generally old
files are now patched in do_versions_after_linking_300 (thx @brecht!).

Fixes T91625.

Maniphest Tasks: T91625

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

Commit Details:

Full Hash: fc2255135e31679d51edf0652caca1462f75c3d4
Parent Commit: b8a30c7
Lines Changed: +70, -24

4 Modified Paths:

/source/blender/blenloader/intern/versioning_300.c (+22, -0) (Diff)
/source/blender/draw/engines/overlay/overlay_edit_uv.c (+32, -24) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+7, -0) (Diff)
/source/blender/makesrna/intern/rna_sculpt_paint.c (+9, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021