Merge pull request #43366 from Calinou/doc-surfacetool-method-order
Make the expected method calling order in SurfaceTool more explicit
This commit is contained in:
commit
0339200972
|
@ -199,7 +199,7 @@
|
||||||
<return type="void">
|
<return type="void">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Shrinks the vertex array by creating an index array (avoids reusing vertices).
|
Shrinks the vertex array by creating an index array. This can improve performance by avoiding vertex reuse.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="optimize_indices_for_cache">
|
<method name="optimize_indices_for_cache">
|
||||||
|
@ -214,7 +214,7 @@
|
||||||
<argument index="0" name="bones" type="PackedInt32Array">
|
<argument index="0" name="bones" type="PackedInt32Array">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Specifies an array of bones for the next vertex to use. [code]bones[/code] must contain 4 integers.
|
Specifies an array of bones to use for the [i]next[/i] vertex. [code]bones[/code] must contain 4 integers.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_color">
|
<method name="set_color">
|
||||||
|
@ -223,7 +223,7 @@
|
||||||
<argument index="0" name="color" type="Color">
|
<argument index="0" name="color" type="Color">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Specifies a [Color] for the next vertex to use.
|
Specifies a [Color] to use for the [i]next[/i] vertex. If every vertex needs to have this information set and you fail to submit it for the first vertex, this information may not be used at all.
|
||||||
[b]Note:[/b] The material must have [member BaseMaterial3D.vertex_color_use_as_albedo] enabled for the vertex color to be visible.
|
[b]Note:[/b] The material must have [member BaseMaterial3D.vertex_color_use_as_albedo] enabled for the vertex color to be visible.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
@ -262,7 +262,7 @@
|
||||||
<argument index="0" name="normal" type="Vector3">
|
<argument index="0" name="normal" type="Vector3">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Specifies a normal for the next vertex to use.
|
Specifies a normal to use for the [i]next[/i] vertex. If every vertex needs to have this information set and you fail to submit it for the first vertex, this information may not be used at all.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_skin_weight_count">
|
<method name="set_skin_weight_count">
|
||||||
|
@ -288,7 +288,7 @@
|
||||||
<argument index="0" name="tangent" type="Plane">
|
<argument index="0" name="tangent" type="Plane">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Specifies a tangent for the next vertex to use.
|
Specifies a tangent to use for the [i]next[/i] vertex. If every vertex needs to have this information set and you fail to submit it for the first vertex, this information may not be used at all.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_uv">
|
<method name="set_uv">
|
||||||
|
@ -297,7 +297,7 @@
|
||||||
<argument index="0" name="uv" type="Vector2">
|
<argument index="0" name="uv" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Specifies a set of UV coordinates to use for the next vertex.
|
Specifies a set of UV coordinates to use for the [i]next[/i] vertex. If every vertex needs to have this information set and you fail to submit it for the first vertex, this information may not be used at all.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_uv2">
|
<method name="set_uv2">
|
||||||
|
@ -306,7 +306,7 @@
|
||||||
<argument index="0" name="uv2" type="Vector2">
|
<argument index="0" name="uv2" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Specifies an optional second set of UV coordinates to use for the next vertex.
|
Specifies an optional second set of UV coordinates to use for the [i]next[/i] vertex. If every vertex needs to have this information set and you fail to submit it for the first vertex, this information may not be used at all.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_weights">
|
<method name="set_weights">
|
||||||
|
@ -315,7 +315,7 @@
|
||||||
<argument index="0" name="weights" type="PackedFloat32Array">
|
<argument index="0" name="weights" type="PackedFloat32Array">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Specifies weight values for next vertex to use. [code]weights[/code] must contain 4 values.
|
Specifies weight values to use for the [i]next[/i] vertex. [code]weights[/code] must contain 4 values. If every vertex needs to have this information set and you fail to submit it for the first vertex, this information may not be used at all.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
|
|
Loading…
Reference in New Issue