Fix T69687: Edit Curve culling

Curve edit points could disappear when the deformed curve is out of view
area. Fix similar to rB0f983e854052.

Reviewers: jbakker

Maniphest Tasks: T69687

Differential Revision: https://developer.blender.org/D5748
This commit is contained in:
Philipp Oeser 2019-09-10 23:37:14 +02:00
parent fb39f1776f
commit 71803f2c94
Notes: blender-bot 2023-02-14 09:17:57 +01:00
Referenced by issue #69687, Curve edit points disappears whenever the deformed curve is out of view area
1 changed files with 5 additions and 5 deletions

View File

@ -270,7 +270,7 @@ static void EDIT_CURVE_cache_populate(void *vedata, Object *ob)
geom = DRW_cache_curve_edge_wire_get(ob);
if (geom) {
DRW_shgroup_call(wire_shgrp, geom, ob);
DRW_shgroup_call_no_cull(wire_shgrp, geom, ob);
}
if ((cu->flag & CU_3D) && (v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_CU_NORMALS) != 0) {
@ -280,12 +280,12 @@ static void EDIT_CURVE_cache_populate(void *vedata, Object *ob)
geom = DRW_cache_curve_edge_overlay_get(ob);
if (geom) {
DRW_shgroup_call(stl->g_data->overlay_edge_shgrp, geom, ob);
DRW_shgroup_call_no_cull(stl->g_data->overlay_edge_shgrp, geom, ob);
}
geom = DRW_cache_curve_vert_overlay_get(ob, stl->g_data->show_handles);
if (geom) {
DRW_shgroup_call(stl->g_data->overlay_vert_shgrp, geom, ob);
DRW_shgroup_call_no_cull(stl->g_data->overlay_vert_shgrp, geom, ob);
}
}
}
@ -294,12 +294,12 @@ static void EDIT_CURVE_cache_populate(void *vedata, Object *ob)
if (BKE_object_is_in_editmode(ob)) {
struct GPUBatch *geom = DRW_cache_curve_edge_overlay_get(ob);
if (geom) {
DRW_shgroup_call(stl->g_data->overlay_edge_shgrp, geom, ob);
DRW_shgroup_call_no_cull(stl->g_data->overlay_edge_shgrp, geom, ob);
}
geom = DRW_cache_curve_vert_overlay_get(ob, false);
if (geom) {
DRW_shgroup_call(stl->g_data->overlay_vert_shgrp, geom, ob);
DRW_shgroup_call_no_cull(stl->g_data->overlay_vert_shgrp, geom, ob);
}
}
}