mirror of https://github.com/godotengine/godot
Merge pull request #78817 from BastiaanOlij/fix_startup_issue_hand_tracking
Fix issue with accessing hand tracking without timing info
This commit is contained in:
commit
52784188bf
|
|
@ -134,6 +134,10 @@ void OpenXRHandTrackingExtension::on_process() {
|
||||||
|
|
||||||
// process our hands
|
// process our hands
|
||||||
const XrTime time = OpenXRAPI::get_singleton()->get_next_frame_time(); // This data will be used for the next frame we render
|
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;
|
XrResult result;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue