Merge pull request #21705 from KellyThomas/tree-create-item
Change return value of Tree.create_item() from Object to TreeItem
This commit is contained in:
commit
ead2c2eef2
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@
|
|||
</description>
|
||||
</method>
|
||||
<method name="create_item">
|
||||
<return type="Object">
|
||||
<return type="TreeItem">
|
||||
</return>
|
||||
<argument index="0" name="parent" type="Object" default="null">
|
||||
</argument>
|
||||
|
|
|
@ -516,7 +516,7 @@ protected:
|
|||
static void _bind_methods();
|
||||
|
||||
//bind helpers
|
||||
Object *_create_item(Object *p_parent, int p_idx = -1) {
|
||||
TreeItem *_create_item(Object *p_parent, int p_idx = -1) {
|
||||
return create_item(Object::cast_to<TreeItem>(p_parent), p_idx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue