diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-09-25 19:50:57 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-09-25 23:51:54 +0300 |
commit | 2cff9b4cb605047927fbb1c774fdafcfd2ab534e (patch) | |
tree | 101d1efb5507a9dbde2934b04f081e77ed1e131b /source/blender/draw/modes/edit_curve_mode.c | |
parent | 05d0e5315b99f939687838b50519d0702b4c8fb4 (diff) |
Curves: Move draw options to overlays
This commit add one regression: it is impossible to currently hide handles
in the viewport. But this should be fixed in another commit.
Diffstat (limited to 'source/blender/draw/modes/edit_curve_mode.c')
-rw-r--r-- | source/blender/draw/modes/edit_curve_mode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/modes/edit_curve_mode.c b/source/blender/draw/modes/edit_curve_mode.c index cdc9a9617b9..fb3f67e6d9f 100644 --- a/source/blender/draw/modes/edit_curve_mode.c +++ b/source/blender/draw/modes/edit_curve_mode.c @@ -249,7 +249,7 @@ static void EDIT_CURVE_cache_populate(void *vedata, Object *ob) geom = DRW_cache_curve_edge_wire_get(ob); DRW_shgroup_call_add(stl->g_data->wire_shgrp, geom, ob->obmat); - if ((cu->flag & CU_3D) && (cu->drawflag & CU_HIDE_NORMALS) == 0) { + if ((cu->flag & CU_3D) && (v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_CU_NORMALS) != 0) { geom = DRW_cache_curve_edge_normal_get(ob, v3d->overlay.normals_length); DRW_shgroup_call_add(stl->g_data->wire_shgrp, geom, ob->obmat); } |