Update XRServer with starting position of (new) current XROrigin3D
This commit is contained in:
parent
9580769e9a
commit
23e0afec1d
|
@ -644,6 +644,12 @@ void XROrigin3D::set_current(bool p_enabled) {
|
|||
origin_nodes[i]->set_current(false);
|
||||
}
|
||||
}
|
||||
|
||||
// update XRServer with our current position
|
||||
XRServer *xr_server = XRServer::get_singleton();
|
||||
ERR_FAIL_NULL(xr_server);
|
||||
|
||||
xr_server->set_world_origin(get_global_transform());
|
||||
} else {
|
||||
bool found = false;
|
||||
// We no longer have a current origin so find the first one we can make current
|
||||
|
|
Loading…
Reference in New Issue