mirror of https://github.com/godotengine/godot
Fix dead links across the class reference
This was found using lychee, which is being set up in godot-docs' CI.
This commit is contained in:
parent
5da6deaaca
commit
4905d033e5
|
|
@ -219,7 +219,7 @@
|
|||
</member>
|
||||
<member name="grow" type="bool" setter="set_grow_enabled" getter="is_grow_enabled" default="false">
|
||||
If [code]true[/code], enables the vertex grow setting. This can be used to create mesh-based outlines using a second material pass and its [member cull_mode] set to [constant CULL_FRONT]. See also [member grow_amount].
|
||||
[b]Note:[/b] Vertex growth cannot create new vertices, which means that visible gaps may occur in sharp corners. This can be alleviated by designing the mesh to use smooth normals exclusively using [url=https://wiki.polycount.com/wiki/Face_weighted_normals]face weighted normals[/url] in the 3D authoring software. In this case, grow will be able to join every outline together, just like in the original mesh.
|
||||
[b]Note:[/b] Vertex growth cannot create new vertices, which means that visible gaps may occur in sharp corners. This can be alleviated by designing the mesh to use smooth normals exclusively using [url=http://wiki.polycount.com/wiki/Face_weighted_normals]face weighted normals[/url] in the 3D authoring software. In this case, grow will be able to join every outline together, just like in the original mesh.
|
||||
</member>
|
||||
<member name="grow_amount" type="float" setter="set_grow" getter="get_grow" default="0.0">
|
||||
Grows object vertices in the direction of their normals. Only effective if [member grow] is [code]true[/code].
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@
|
|||
<param index="3" name="body" type="String" default="""" />
|
||||
<description>
|
||||
Sends a request to the connected host.
|
||||
The URL parameter is usually just the part after the host, so for [code]https://somehost.com/index.php[/code], it is [code]/index.php[/code]. When sending requests to an HTTP proxy server, it should be an absolute URL. For [constant HTTPClient.METHOD_OPTIONS] requests, [code]*[/code] is also allowed. For [constant HTTPClient.METHOD_CONNECT] requests, it should be the authority component ([code]host:port[/code]).
|
||||
The URL parameter is usually just the part after the host, so for [code]https://example.com/index.php[/code], it is [code]/index.php[/code]. When sending requests to an HTTP proxy server, it should be an absolute URL. For [constant HTTPClient.METHOD_OPTIONS] requests, [code]*[/code] is also allowed. For [constant HTTPClient.METHOD_CONNECT] requests, it should be the authority component ([code]host:port[/code]).
|
||||
Headers are HTTP request headers. For available HTTP methods, see [enum Method].
|
||||
To create a POST request with query strings to push to the server, do:
|
||||
[codeblocks]
|
||||
|
|
@ -171,7 +171,7 @@
|
|||
<param index="3" name="body" type="PackedByteArray" />
|
||||
<description>
|
||||
Sends a raw request to the connected host.
|
||||
The URL parameter is usually just the part after the host, so for [code]https://somehost.com/index.php[/code], it is [code]/index.php[/code]. When sending requests to an HTTP proxy server, it should be an absolute URL. For [constant HTTPClient.METHOD_OPTIONS] requests, [code]*[/code] is also allowed. For [constant HTTPClient.METHOD_CONNECT] requests, it should be the authority component ([code]host:port[/code]).
|
||||
The URL parameter is usually just the part after the host, so for [code]https://example.com/index.php[/code], it is [code]/index.php[/code]. When sending requests to an HTTP proxy server, it should be an absolute URL. For [constant HTTPClient.METHOD_OPTIONS] requests, [code]*[/code] is also allowed. For [constant HTTPClient.METHOD_CONNECT] requests, it should be the authority component ([code]host:port[/code]).
|
||||
Headers are HTTP request headers. For available HTTP methods, see [enum Method].
|
||||
Sends the body data raw, as a byte array and does not encode it in any way.
|
||||
</description>
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@
|
|||
http_request.request_completed.connect(self._http_request_completed)
|
||||
|
||||
# Perform the HTTP request. The URL below returns a PNG image as of writing.
|
||||
var error = http_request.request("https://via.placeholder.com/512")
|
||||
var error = http_request.request("https://placehold.co/512")
|
||||
if error != OK:
|
||||
push_error("An error occurred in the HTTP request.")
|
||||
|
||||
|
|
@ -120,7 +120,7 @@
|
|||
httpRequest.RequestCompleted += HttpRequestCompleted;
|
||||
|
||||
// Perform the HTTP request. The URL below returns a PNG image as of writing.
|
||||
Error error = httpRequest.Request("https://via.placeholder.com/512");
|
||||
Error error = httpRequest.Request("https://placehold.co/512");
|
||||
if (error != Error.Ok)
|
||||
{
|
||||
GD.PushError("An error occurred in the HTTP request.");
|
||||
|
|
|
|||
Loading…
Reference in New Issue