diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-03-25 20:35:02 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-03-25 21:06:12 +0300 |
commit | 41852c8a8cb9e7c35a04476042ed57a20a03860d (patch) | |
tree | b3f5d109933da3dc1fd937bc9410aef6158448c1 /source/blender | |
parent | 42b5328c36de93576c8225071909db82a0c823fe (diff) |
DRW: Fix crash/broken Metaballs display.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/intern/draw_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_common.c b/source/blender/draw/intern/draw_common.c index 1299b1b757b..8d23688959c 100644 --- a/source/blender/draw/intern/draw_common.c +++ b/source/blender/draw/intern/draw_common.c @@ -426,7 +426,7 @@ DRWShadingGroup *shgroup_instance_mball_handles(DRWPass *pass, struct Gwn_Batch GPUShader *sh = GPU_shader_get_builtin_shader(GPU_SHADER_3D_INSTANCE_MBALL_HANDLES); DRW_shgroup_instance_format(g_formats.instance_mball_handles, { - {"ScaleTranslationMatrix" , DRW_ATTRIB_FLOAT, 16}, + {"ScaleTranslationMatrix" , DRW_ATTRIB_FLOAT, 12}, {"radius" , DRW_ATTRIB_FLOAT, 1}, {"color" , DRW_ATTRIB_FLOAT, 3} }); |