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:
parent
607b230ffe
commit
d7d7af321a
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue