Merge pull request #47359 from lucicam/master

Fix failure in set_primary_interface when parameter is null
This commit is contained in:
Rémi Verschelde 2021-03-25 16:55:43 +01:00 committed by GitHub
commit 8d11b6374e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -311,6 +311,7 @@ Ref<XRInterface> XRServer::get_primary_interface() const {
};
void XRServer::set_primary_interface(const Ref<XRInterface> &p_primary_interface) {
ERR_FAIL_COND(p_primary_interface.is_null());
primary_interface = p_primary_interface;
print_verbose("XR: Primary interface set to: " + primary_interface->get_name());