Draw Manager: hide 2d curves normals

This commit is contained in:
2017-04-23 03:28:53 +10:00
parent 4ee36a2aea
commit 23c4f01fb4

View File

@@ -227,7 +227,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->drawflag & CU_HIDE_NORMALS) == 0) {
if ((cu->flag & CU_3D) && (cu->drawflag & CU_HIDE_NORMALS) == 0) {
geom = DRW_cache_curve_edge_normal_get(ob, scene->toolsettings->normalsize);
DRW_shgroup_call_add(stl->g_data->wire_shgrp, geom, ob->obmat);
}