mirror of
https://github.com/godotengine/godot.git
synced 2025-10-29 20:51:14 +00:00
Use reference to constant in functions
This commit is contained in:
parent
3bfffcc568
commit
01cc7a996b
42 changed files with 82 additions and 82 deletions
|
|
@ -3207,7 +3207,7 @@ Vector3 SpatialEditorViewport::_get_instance_position(const Point2 &p_pos) const
|
|||
return point + offset;
|
||||
}
|
||||
|
||||
AABB SpatialEditorViewport::_calculate_spatial_bounds(const Spatial *p_parent, const AABB p_bounds) {
|
||||
AABB SpatialEditorViewport::_calculate_spatial_bounds(const Spatial *p_parent, const AABB &p_bounds) {
|
||||
AABB bounds = p_bounds;
|
||||
for (int i = 0; i < p_parent->get_child_count(); i++) {
|
||||
Spatial *child = Object::cast_to<Spatial>(p_parent->get_child(i));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue