Merge pull request #75370 from AThousandShips/nodepath_doc_fix_3_x

[3.x] Fix `NodePath` subname index range documentation
This commit is contained in:
Rémi Verschelde 2023-06-02 17:21:01 +02:00
commit 1d8b701da0
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -96,7 +96,7 @@
<return type="String" />
<argument index="0" name="idx" type="int" />
<description>
Gets the resource or property name indicated by [code]idx[/code] (0 to [method get_subname_count]).
Gets the resource or property name indicated by [code]idx[/code] (0 to [method get_subname_count] - 1).
[codeblock]
var node_path = NodePath("Path2D/PathFollow2D/Sprite:texture:load_path")
print(node_path.get_subname(0)) # texture