diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-04 12:19:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-04 12:19:33 +0200 |
commit | 3b2033b9419f76ffaff47654372df1559b6c2b95 (patch) | |
tree | 66da06ba0943ad91aadedc6df721b94365df6d4c /editor | |
parent | bd7b2354c5384527ed73b5d13cee61d85f38fec6 (diff) | |
parent | 10d0bc920bed2d6bd038cf79cd2e2fa7cb1303d1 (diff) |
Merge pull request #32540 from codecustard/fix_show_bounds_for_scenes
Fixes scene instances not displaying bounds when selected
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 127cead57f..306d2e9a40 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -2172,7 +2172,7 @@ void SpatialEditorViewport::_notification(int p_what) { VisualInstance *vi = Object::cast_to<VisualInstance>(sp); - se->aabb = vi ? vi->get_aabb() : AABB(Vector3(-0.2, -0.2, -0.2), Vector3(0.4, 0.4, 0.4)); + se->aabb = vi ? vi->get_aabb() : _calculate_spatial_bounds(sp, AABB(Vector3(-0.2, -0.2, -0.2), Vector3(0.4, 0.4, 0.4))); Transform t = sp->get_global_gizmo_transform(); t.translate(se->aabb.position); |