Merge pull request #61403 from lawnjelly/occpoly_gizmo_fix
This commit is contained in:
commit
d020346c0d
|
@ -5398,12 +5398,16 @@ void OccluderSpatialGizmo::redraw() {
|
||||||
const OccluderShapePolygon *occ_poly = get_occluder_shape_poly();
|
const OccluderShapePolygon *occ_poly = get_occluder_shape_poly();
|
||||||
if (occ_poly) {
|
if (occ_poly) {
|
||||||
// main poly
|
// main poly
|
||||||
|
if (occ_poly->_poly_pts_local_raw.size()) {
|
||||||
_redraw_poly(false, occ_poly->_poly_pts_local, occ_poly->_poly_pts_local_raw);
|
_redraw_poly(false, occ_poly->_poly_pts_local, occ_poly->_poly_pts_local_raw);
|
||||||
|
}
|
||||||
|
|
||||||
// hole
|
// hole
|
||||||
|
if (occ_poly->_hole_pts_local_raw.size()) {
|
||||||
_redraw_poly(true, occ_poly->_hole_pts_local, occ_poly->_hole_pts_local_raw);
|
_redraw_poly(true, occ_poly->_hole_pts_local, occ_poly->_hole_pts_local_raw);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void OccluderSpatialGizmo::_redraw_poly(bool p_hole, const Vector<Vector2> &p_pts, const PoolVector<Vector2> &p_pts_raw) {
|
void OccluderSpatialGizmo::_redraw_poly(bool p_hole, const Vector<Vector2> &p_pts, const PoolVector<Vector2> &p_pts_raw) {
|
||||||
PoolVector<Vector3> pts_edge;
|
PoolVector<Vector3> pts_edge;
|
||||||
|
|
Loading…
Reference in New Issue