summaryrefslogtreecommitdiffstats
path: root/editor/plugins/spatial_editor_plugin.h
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-07-10 11:54:12 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-07-10 11:54:12 +0200
commit01cc7a996babc9173a393bf3dae080dc14a277c9 (patch)
treecc57520aebe056553aeb8999ef90f9c71cace392 /editor/plugins/spatial_editor_plugin.h
parent3bfffcc568d87342e867f95c35a4a19e09072189 (diff)
downloadredot-engine-01cc7a996babc9173a393bf3dae080dc14a277c9.tar.gz
Use reference to constant in functions
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.h')
-rw-r--r--editor/plugins/spatial_editor_plugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.h b/editor/plugins/spatial_editor_plugin.h
index 0404115269..b4e2f028d2 100644
--- a/editor/plugins/spatial_editor_plugin.h
+++ b/editor/plugins/spatial_editor_plugin.h
@@ -376,7 +376,7 @@ private:
Point2i _get_warped_mouse_motion(const Ref<InputEventMouseMotion> &p_ev_mouse_motion) const;
Vector3 _get_instance_position(const Point2 &p_pos) const;
- static AABB _calculate_spatial_bounds(const Spatial *p_parent, const AABB p_bounds);
+ static AABB _calculate_spatial_bounds(const Spatial *p_parent, const AABB &p_bounds);
void _create_preview(const Vector<String> &files) const;
void _remove_preview();
bool _cyclical_dependency_exists(const String &p_target_scene_path, Node *p_desired_node);