Fix T59271: Curves with Extrude still show curve

Compared to 2.79, this also has the benefit of actually showing the curve
again if you set both bevel start and end to 0.0 for example.

Maniphest Tasks: T59271

Differential Revision: https://developer.blender.org/D6168
This commit is contained in:
Philipp Oeser 2020-01-31 15:33:13 +01:00
parent 8e4d5740c8
commit 6da097136c
Notes: blender-bot 2023-02-14 04:31:10 +01:00
Referenced by commit a87eee65fc, Fix T76196: Curve Display hides wires as soon as any part has faces [due
Referenced by issue #76196, Curve Display hides all curves/wires as soon as any part has faces [due to filling/extrude/etc]
Referenced by issue #59271, Curves with Extrude still show curve
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,8 @@
#include "DNA_mesh_types.h"
#include "DNA_view3d_types.h"
#include "BKE_curve.h"
#include "BKE_displist.h"
#include "BKE_editmesh.h"
#include "BKE_global.h"
#include "BKE_object.h"
@ -138,6 +140,9 @@ void OVERLAY_wireframe_cache_populate(OVERLAY_Data *vedata,
struct GPUBatch *geom = NULL;
switch (ob->type) {
case OB_CURVE:
if (ob->runtime.curve_cache && BKE_displist_has_faces(&ob->runtime.curve_cache->disp)) {
break;
}
geom = DRW_cache_curve_edge_wire_get(ob);
break;
case OB_SURF: