mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Change return value of Tree.create_item() from Object to TreeItem
This commit is contained in:
parent
457108924f
commit
3dc0d17c6f
@ -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 New Issue
Block a user