From 4bf37bafc2701afc8d8f7482c1ebbdd5f9db8e3f Mon Sep 17 00:00:00 2001 From: mano-wii Date: Mon, 19 Aug 2019 11:49:07 -0300 Subject: View3D Grid: fix imperial grid drawing This is a step to finish the D4325 and fix the T61286. Currently the grid is highlighted in steps of 10 out of 10, which is wrong for the imperial units as seen in `buImperialLenDef`. The idea of the code is to pass the steps of the grid already dimensioned as a uniform. Another important thing to note is that subdivisions now only affect the grid without unity. This matches the 2.7x Blender versions. No performance loss (almost no gain too). Reviewers: fclem Subscribers: zlsa, rl.amorato Differential Revision: https://developer.blender.org/D4379 --- source/blender/draw/intern/draw_common.h | 1 - 1 file changed, 1 deletion(-) (limited to 'source/blender/draw/intern/draw_common.h') diff --git a/source/blender/draw/intern/draw_common.h b/source/blender/draw/intern/draw_common.h index 05d7bafa00d..52b94689679 100644 --- a/source/blender/draw/intern/draw_common.h +++ b/source/blender/draw/intern/draw_common.h @@ -113,7 +113,6 @@ typedef struct GlobalsUboStorage { /* Pack individual float at the end of the buffer to avoid alignment errors */ float sizeLightCenter, sizeLightCircle, sizeLightCircleShadow; float sizeVertex, sizeEdge, sizeEdgeFix, sizeFaceDot; - float gridDistance, gridResolution, gridSubdivisions, gridScale; float pad_globalsBlock; } GlobalsUboStorage; -- cgit v1.2.3