mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Add OccluderShapePolygon
Add OccluderShapePolygon, glue to Occluder and gizmos etc.
This commit is contained in:
parent
b5eef640e1
commit
8ea20f5fdd
32 changed files with 2065 additions and 84 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue