Fix unintended frustum culling

When view some models in scene import settings dialog, the subviewport will
have some unintended frustum culling.

Adding a custom aabb for the preview fix this bug.
This commit is contained in:
feng716 2024-07-26 11:15:03 +08:00
parent 607b230ffe
commit d7d7af321a
1 changed files with 1 additions and 0 deletions

View File

@ -1781,6 +1781,7 @@ SceneImportSettingsDialog::SceneImportSettingsDialog() {
{
mesh_preview = memnew(MeshInstance3D);
mesh_preview->set_custom_aabb(AABB(Vector3(-10000, -10000, -10000), Vector3(20000, 20000, 20000)));
base_viewport->add_child(mesh_preview);
mesh_preview->hide();