summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRaul Santos <raulsntos@gmail.com>2022-02-12 19:12:22 +0100
committerRaul Santos <raulsntos@gmail.com>2022-05-17 18:08:36 +0200
commita9a41df0c84f1852a07843771734fc67cf285f54 (patch)
treedafc4f15186e6bcd3a8071306ea11691ceea41c9 /doc
parent0ba0d51c9e9a62f12d887e62bcc9f0067a80795f (diff)
Expose Curve points in the inspector
Exposes the Curve, Curve2D and Curve3D points as an array property.
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Curve.xml9
-rw-r--r--doc/classes/Curve2D.xml9
-rw-r--r--doc/classes/Curve3D.xml9
3 files changed, 9 insertions, 18 deletions
diff --git a/doc/classes/Curve.xml b/doc/classes/Curve.xml
index 16d0e82a1f..383d33532b 100644
--- a/doc/classes/Curve.xml
+++ b/doc/classes/Curve.xml
@@ -38,12 +38,6 @@
Removes all points from the curve.
</description>
</method>
- <method name="get_point_count" qualifiers="const">
- <return type="int" />
- <description>
- Returns the number of points describing the curve.
- </description>
- </method>
<method name="get_point_left_mode" qualifiers="const">
<return type="int" enum="Curve.TangentMode" />
<argument index="0" name="index" type="int" />
@@ -159,6 +153,9 @@
<member name="min_value" type="float" setter="set_min_value" getter="get_min_value" default="0.0">
The minimum value the curve can reach.
</member>
+ <member name="point_count" type="int" setter="set_point_count" getter="get_point_count" default="0">
+ The number of points describing the curve.
+ </member>
</members>
<signals>
<signal name="range_changed">
diff --git a/doc/classes/Curve2D.xml b/doc/classes/Curve2D.xml
index 94e52912a1..3bba825aaa 100644
--- a/doc/classes/Curve2D.xml
+++ b/doc/classes/Curve2D.xml
@@ -55,12 +55,6 @@
[code]to_point[/code] must be in this curve's local space.
</description>
</method>
- <method name="get_point_count" qualifiers="const">
- <return type="int" />
- <description>
- Returns the number of points describing the curve.
- </description>
- </method>
<method name="get_point_in" qualifiers="const">
<return type="Vector2" />
<argument index="0" name="idx" type="int" />
@@ -155,5 +149,8 @@
<member name="bake_interval" type="float" setter="set_bake_interval" getter="get_bake_interval" default="5.0">
The distance in pixels between two adjacent cached points. Changing it forces the cache to be recomputed the next time the [method get_baked_points] or [method get_baked_length] function is called. The smaller the distance, the more points in the cache and the more memory it will consume, so use with care.
</member>
+ <member name="point_count" type="int" setter="set_point_count" getter="get_point_count" default="0">
+ The number of points describing the curve.
+ </member>
</members>
</class>
diff --git a/doc/classes/Curve3D.xml b/doc/classes/Curve3D.xml
index ed642e0ddc..6457d9681e 100644
--- a/doc/classes/Curve3D.xml
+++ b/doc/classes/Curve3D.xml
@@ -68,12 +68,6 @@
[code]to_point[/code] must be in this curve's local space.
</description>
</method>
- <method name="get_point_count" qualifiers="const">
- <return type="int" />
- <description>
- Returns the number of points describing the curve.
- </description>
- </method>
<method name="get_point_in" qualifiers="const">
<return type="Vector3" />
<argument index="0" name="idx" type="int" />
@@ -194,6 +188,9 @@
<member name="bake_interval" type="float" setter="set_bake_interval" getter="get_bake_interval" default="0.2">
The distance in meters between two adjacent cached points. Changing it forces the cache to be recomputed the next time the [method get_baked_points] or [method get_baked_length] function is called. The smaller the distance, the more points in the cache and the more memory it will consume, so use with care.
</member>
+ <member name="point_count" type="int" setter="set_point_count" getter="get_point_count" default="0">
+ The number of points describing the curve.
+ </member>
<member name="up_vector_enabled" type="bool" setter="set_up_vector_enabled" getter="is_up_vector_enabled" default="true">
If [code]true[/code], the curve will bake up vectors used for orientation. This is used when [member PathFollow3D.rotation_mode] is set to [constant PathFollow3D.ROTATION_ORIENTED]. Changing it forces the cache to be recomputed.
</member>