Merge pull request #113979 from rsanchezsaez/apple/xr-node-warnings
Add XROrigin3D scale warning
This commit is contained in:
commit
f33a83cdfe
1 changed files with 4 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue