Blender Git Loki

Git Commits -> Revision 18c88ea

Revision 18c88ea by Jeroen Bakker (master)
January 29, 2020, 14:07 (GMT)
Fix T73188: RenderResult as Camera BG Image

In blender 2.79 you could use a render result as a camera background
image. This is useful during layout/compositing. During Blender 2.80
development there were 2 issues introduced that removed this feature.

* to receive a render result the image required a lock. This lock wasn't passed and therefore no image was read from the result. Generating an GPUTexture from an Blender image also didn't do the locking.
* the iuser->scene field wasn't set what is required for render results.

This change adds an optional `ibuf` parameter to `GPU_texture_from_blender` that can be passed when available.

Reviewed By: fclem, brecht

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

Commit Details:

Full Hash: 18c88eac171a814f94142d442494ea6f5eeeab02
Parent Commit: b683fcb
Lines Changed: +47, -27

9 Modified Paths:

/source/blender/draw/engines/gpencil/gpencil_draw_utils.c (+3, -3) (Diff)
/source/blender/draw/engines/overlay/overlay_image.c (+11, -7) (Diff)
/source/blender/draw/engines/overlay/overlay_paint.c (+1, -1) (Diff)
/source/blender/draw/engines/workbench/workbench_forward.c (+2, -1) (Diff)
/source/blender/draw/engines/workbench/workbench_materials.c (+4, -3) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+1, -1) (Diff)
/source/blender/gpu/GPU_texture.h (+5, -1) (Diff)
/source/blender/gpu/intern/gpu_draw.c (+19, -9) (Diff)
/source/blender/makesrna/intern/rna_image_api.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021