Specify the behaviour of get_tree when the node is not in the scene tree
(cherry picked from commit ee9c8cb296
)
This commit is contained in:
parent
9c82571dd6
commit
2ff7b6c830
|
@ -445,7 +445,7 @@
|
||||||
<method name="get_tree" qualifiers="const">
|
<method name="get_tree" qualifiers="const">
|
||||||
<return type="SceneTree" />
|
<return type="SceneTree" />
|
||||||
<description>
|
<description>
|
||||||
Returns the [SceneTree] that contains this node.
|
Returns the [SceneTree] that contains this node. Returns [code]null[/code] and prints an error if this node is not inside the scene tree. See also [method is_inside_tree].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_viewport" qualifiers="const">
|
<method name="get_viewport" qualifiers="const">
|
||||||
|
|
Loading…
Reference in New Issue