[Bf-blender-cvs] [b7cc2dbdce0] temp-udim-images: Fix incorrect amount of vertices in UDIM grid drawing
Lukas Stockner
noreply at git.blender.org
Tue Jun 12 18:56:22 CEST 2018
Commit: b7cc2dbdce0af5f55b06f12f625bb608814a7432
Author: Lukas Stockner
Date: Tue Jun 12 18:11:39 2018 +0200
Branches: temp-udim-images
https://developer.blender.org/rBb7cc2dbdce0af5f55b06f12f625bb608814a7432
Fix incorrect amount of vertices in UDIM grid drawing
===================================================================
M source/blender/editors/space_image/image_draw.c
===================================================================
diff --git a/source/blender/editors/space_image/image_draw.c b/source/blender/editors/space_image/image_draw.c
index b15d80e9ae0..7a8d132efd0 100644
--- a/source/blender/editors/space_image/image_draw.c
+++ b/source/blender/editors/space_image/image_draw.c
@@ -667,7 +667,7 @@ static bool draw_image_udim_grid(ARegion *ar, SpaceImage *sima, float zoomx, flo
unsigned color = GWN_vertformat_attr_add(format, "color", GWN_COMP_F32, 3, GWN_FETCH_FLOAT);
immBindBuiltinProgram(GPU_SHADER_2D_FLAT_COLOR);
- immBegin(GWN_PRIM_LINES, 4 * (xmax - xmin + 1) + 4 * (ymax - ymin + 1));
+ immBegin(GWN_PRIM_LINES, 2 * (xmax - xmin + 1) + 2 * (ymax - ymin + 1));
float theme_color[3];
UI_GetThemeColorShade3fv(TH_BACK, 20.0f, theme_color);
More information about the Bf-blender-cvs
mailing list