summaryrefslogtreecommitdiffstats
path: root/editor/plugins/spatial_editor_plugin.h
diff options
context:
space:
mode:
authorjfons <joan.fonssanchez@gmail.com>2019-10-04 15:28:30 +0200
committerjfons <joan.fonssanchez@gmail.com>2019-10-04 15:47:15 +0200
commitc1de7cb22e8864433c79a0caff368b7083e05b90 (patch)
tree80e23e7bb3e4a78d1f71e64ebd8675098b9d42d2 /editor/plugins/spatial_editor_plugin.h
parentee611d149b4b126e7edc4754f87953e3c3fd8c98 (diff)
downloadredot-engine-c1de7cb22e8864433c79a0caff368b7083e05b90.tar.gz
Fix calculate_spatial_bounds for selection display
Fixes `SpatialEditorPlugin::_calculate_spatial_bounds` so the displayed selection doesn't break with transformed scenes.
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 208495c2f5..fe91c33642 100644
--- a/editor/plugins/spatial_editor_plugin.h
+++ b/editor/plugins/spatial_editor_plugin.h
@@ -375,7 +375,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, bool p_exclude_toplevel_transform = true);
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);