Expose Curve points in the inspector

Exposes the Curve, Curve2D and Curve3D points as an array property.
This commit is contained in:
Raul Santos
2022-02-12 19:12:22 +01:00
parent 0ba0d51c9e
commit a9a41df0c8
5 changed files with 280 additions and 19 deletions

View File

@ -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">