Browse Source

Fix bind " convergence_dist" containing space

Jan Haller 2 years ago
parent
commit
15686ca786
2 changed files with 2 additions and 2 deletions
  1. 1 1
      core/variant/variant_call.cpp
  2. 1 1
      doc/classes/Projection.xml

+ 1 - 1
core/variant/variant_call.cpp

@@ -2135,7 +2135,7 @@ static void _register_variant_builtin_methods() {
 	bind_static_method(Projection, create_depth_correction, sarray("flip_y"), varray());
 	bind_static_method(Projection, create_light_atlas_rect, sarray("rect"), varray());
 	bind_static_method(Projection, create_perspective, sarray("fovy", "aspect", "z_near", "z_far", "flip_fov"), varray(false));
-	bind_static_method(Projection, create_perspective_hmd, sarray("fovy", "aspect", "z_near", "z_far", "flip_fov", "eye", "intraocular_dist", " convergence_dist"), varray());
+	bind_static_method(Projection, create_perspective_hmd, sarray("fovy", "aspect", "z_near", "z_far", "flip_fov", "eye", "intraocular_dist", "convergence_dist"), varray());
 	bind_static_method(Projection, create_for_hmd, sarray("eye", "aspect", "intraocular_dist", "display_width", "display_to_lens", "oversample", "z_near", "z_far"), varray());
 	bind_static_method(Projection, create_orthogonal, sarray("left", "right", "bottom", "top", "z_near", "z_far"), varray());
 	bind_static_method(Projection, create_orthogonal_aspect, sarray("size", "aspect", "z_near", "z_far", "flip_fov"), varray(false));

+ 1 - 1
doc/classes/Projection.xml

@@ -149,7 +149,7 @@
 			<param index="4" name="flip_fov" type="bool" />
 			<param index="5" name="eye" type="int" />
 			<param index="6" name="intraocular_dist" type="float" />
-			<param index="7" name=" convergence_dist" type="float" />
+			<param index="7" name="convergence_dist" type="float" />
 			<description>
 				Creates a new [Projection] that projects positions using a perspective projection with the given Y-axis field of view (in degrees), X:Y aspect ratio, and clipping distances. The projection is adjusted for a head-mounted display with the given distance between eyes and distance to a point that can be focused on.
 				[param eye] creates the projection for the left eye when set to 1, or the right eye when set to 2.