Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2022-01-28 13:19:27 +0300
committerJeroen Bakker <jeroen@blender.org>2022-01-28 13:48:47 +0300
commitdcb7b3f9f78484840edc60bc4cf711823b7eec17 (patch)
tree70682ed0fa9ea2b44562ecbda0c18858843950ed /source/blender/draw/engines/image/image_shader_params.hh
parent379814a1184312aa3714491b92bf5b2ea94cce23 (diff)
Image Engine: Fix issue show alpha flag not reset.
After showing the alpha in the image editor the setting was not reset so all images in the editor showed as being transparent. This commit fixes this by resetting the flag before updating.
Diffstat (limited to 'source/blender/draw/engines/image/image_shader_params.hh')
-rw-r--r--source/blender/draw/engines/image/image_shader_params.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/engines/image/image_shader_params.hh b/source/blender/draw/engines/image/image_shader_params.hh
index fd16d9cdc4b..3fcea696594 100644
--- a/source/blender/draw/engines/image/image_shader_params.hh
+++ b/source/blender/draw/engines/image/image_shader_params.hh
@@ -44,6 +44,7 @@ struct ShaderParameters {
void update(AbstractSpaceAccessor *space, const Scene *scene, Image *image, ImBuf *image_buffer)
{
+ flags = 0;
copy_v4_fl(shuffle, 1.0f);
copy_v2_fl2(far_near, 100.0f, 0.0f);