Merge pull request #52405 from BastiaanOlij/xr_extension_missing_names

Add missing parameter names to _commit_views GDVIRTUAL_BIND
This commit is contained in:
Bastiaan Olij 2021-09-07 09:20:49 +10:00 committed by GitHub
commit 76b83ff615
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -11,8 +11,8 @@
<methods>
<method name="_commit_views" qualifiers="virtual">
<return type="void" />
<argument index="0" name="" type="RID" />
<argument index="1" name="" type="Rect2" />
<argument index="0" name="render_target" type="RID" />
<argument index="1" name="screen_rect" type="Rect2" />
<description>
</description>
</method>

View file

@ -49,7 +49,7 @@ void XRInterfaceExtension::_bind_methods() {
GDVIRTUAL_BIND(_get_transform_for_view, "view", "cam_transform");
GDVIRTUAL_BIND(_get_projection_for_view, "view", "aspect", "z_near", "z_far");
GDVIRTUAL_BIND(_commit_views);
GDVIRTUAL_BIND(_commit_views, "render_target", "screen_rect");
GDVIRTUAL_BIND(_process);
GDVIRTUAL_BIND(_notification, "what");