Allow OpenXRCompositionLayer property layer_viewport to be assigned to nullptr

This commit is contained in:
devloglogan 2024-05-21 07:52:40 -05:00
parent 40b4130c93
commit 3d7b712c86

View file

@ -165,7 +165,9 @@ void OpenXRCompositionLayer::set_layer_viewport(SubViewport *p_viewport) {
return;
}
if (p_viewport != nullptr) {
ERR_FAIL_COND_EDMSG(is_viewport_in_use(p_viewport), RTR("Cannot use the same SubViewport with multiple OpenXR composition layers. Clear it from its current layer first."));
}
layer_viewport = p_viewport;