Add OccluderShapePolygon

Add OccluderShapePolygon, glue to Occluder and gizmos etc.
This commit is contained in:
lawnjelly 2021-08-17 13:40:39 +01:00
parent b5eef640e1
commit 8ea20f5fdd
32 changed files with 2065 additions and 84 deletions

View file

@ -3674,7 +3674,11 @@ AABB SpatialEditorViewport::_calculate_spatial_bounds(const Spatial *p_parent, b
}
if (bounds.size == Vector3() && p_parent->get_class_name() != StringName("Spatial")) {
#ifdef TOOLS_ENABLED
bounds = p_parent->get_fallback_gizmo_aabb();
#else
bounds = AABB(Vector3(-0.2, -0.2, -0.2), Vector3(0.4, 0.4, 0.4));
#endif
}
if (!p_exclude_toplevel_transform) {