[Bf-blender-cvs] [36d457e8872] blender2.8: DRW: Fix assert in texture paint

Clément Foucault noreply at git.blender.org
Wed Oct 3 15:44:14 CEST 2018


Commit: 36d457e8872ca9c6a779d671b65999e1706797ed
Author: Clément Foucault
Date:   Tue Oct 2 14:35:33 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB36d457e8872ca9c6a779d671b65999e1706797ed

DRW: Fix assert in texture paint

===================================================================

M	source/blender/draw/modes/paint_texture_mode.c

===================================================================

diff --git a/source/blender/draw/modes/paint_texture_mode.c b/source/blender/draw/modes/paint_texture_mode.c
index 90c1de070df..2792c59b805 100644
--- a/source/blender/draw/modes/paint_texture_mode.c
+++ b/source/blender/draw/modes/paint_texture_mode.c
@@ -244,6 +244,7 @@ static void PAINT_TEXTURE_cache_init(void *vedata)
 					DRWShadingGroup *grp = DRW_shgroup_create(e_data.image_sh, psl->image_faces);
 					DRW_shgroup_uniform_texture(grp, "image", tex);
 					DRW_shgroup_uniform_float(grp, "alpha", &draw_ctx->v3d->overlay.texture_paint_mode_opacity, 1);
+					DRW_shgroup_uniform_block(grp, "globalsBlock", globals_ubo);
 					stl->g_data->shgroup_image_array[0] = grp;
 				}
 				else {



More information about the Bf-blender-cvs mailing list