You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Fix issue with accessing hand tracking without timing info
(cherry picked from commit 72bd997fe8)
This commit is contained in:
committed by
Yuri Sizov
parent
5e7a5cd2b1
commit
ed9216d1d8
@@ -134,6 +134,10 @@ void OpenXRHandTrackingExtension::on_process() {
|
||||
|
||||
// process our hands
|
||||
const XrTime time = OpenXRAPI::get_singleton()->get_next_frame_time(); // This data will be used for the next frame we render
|
||||
if (time == 0) {
|
||||
// we don't have timing info yet, or we're skipping a frame...
|
||||
return;
|
||||
}
|
||||
|
||||
XrResult result;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user