diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-09-26 17:40:09 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-09-26 17:42:57 +0300 |
commit | f7a81abe190a3ed546831577a077507758200777 (patch) | |
tree | 41973f3e02b784a36a9ad64728475fdafcd3fea2 /source/blender/draw/intern/draw_cache.c | |
parent | 1407a111381463cd05ca92a661403d9f114dc95a (diff) |
Edit Surface: Use edit curve engine to display edit surface
It's so similar in practice that we don't need a separate engine for edit
surface overlays.
Diffstat (limited to 'source/blender/draw/intern/draw_cache.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c index 9e6e50bb516..6376855ed43 100644 --- a/source/blender/draw/intern/draw_cache.c +++ b/source/blender/draw/intern/draw_cache.c @@ -3116,7 +3116,7 @@ GPUBatch *DRW_cache_curve_edge_normal_get(Object *ob, float normal_size) GPUBatch *DRW_cache_curve_edge_overlay_get(Object *ob) { - BLI_assert(ob->type == OB_CURVE); + BLI_assert(ELEM(ob->type, OB_CURVE, OB_SURF)); struct Curve *cu = ob->data; return DRW_curve_batch_cache_get_overlay_edges(cu); @@ -3124,7 +3124,7 @@ GPUBatch *DRW_cache_curve_edge_overlay_get(Object *ob) GPUBatch *DRW_cache_curve_vert_overlay_get(Object *ob, bool handles) { - BLI_assert(ob->type == OB_CURVE); + BLI_assert(ELEM(ob->type, OB_CURVE, OB_SURF)); struct Curve *cu = ob->data; return DRW_curve_batch_cache_get_overlay_verts(cu, handles); |