Blender Git Loki

Git Commits -> Revision 4bf37ba

Revision 4bf37ba by Germano Cavalcante (master)
August 19, 2019, 15:05 (GMT)
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

Commit Details:

Full Hash: 4bf37bafc2701afc8d8f7482c1ebbdd5f9db8e3f
Parent Commit: 3cbf246
Lines Changed: +133, -77

8 Modified Paths:

/release/scripts/startup/bl_ui/space_view3d.py (+4, -0) (Diff)
/source/blender/draw/intern/draw_common.h (+0, -1) (Diff)
/source/blender/draw/modes/object_mode.c (+8, -34) (Diff)
/source/blender/draw/modes/shaders/common_globals_lib.glsl (+0, -5) (Diff)
/source/blender/draw/modes/shaders/object_grid_frag.glsl (+58, -17) (Diff)
/source/blender/draw/modes/shaders/object_grid_vert.glsl (+0, -6) (Diff)
/source/blender/editors/include/ED_view3d.h (+4, -0) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+59, -14) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021