Merge pull request #113979 from rsanchezsaez/apple/xr-node-warnings

Add XROrigin3D scale warning
This commit is contained in:
Rémi Verschelde 2026-01-09 10:46:33 +01:00
commit f33a83cdfe
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -691,10 +691,13 @@ PackedStringArray XROrigin3D::get_configuration_warnings() const {
has_camera = true;
}
}
if (!has_camera) {
warnings.push_back(RTR("XROrigin3D requires an XRCamera3D child node."));
}
if (get_scale().is_equal_approx(Vector3(1, 1, 1))) {
warnings.push_back(RTR("Changing the scale on the XROrigin3D node is not supported. Change the World Scale instead."));
}
}
bool xr_enabled = GLOBAL_GET("xr/shaders/enabled");