mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #81506 from twobitadder/reparent_keep_owner
Fix `reparent()` losing owner
This commit is contained in:
@@ -739,7 +739,7 @@
|
||||
<param index="0" name="new_parent" type="Node" />
|
||||
<param index="1" name="keep_global_transform" type="bool" default="true" />
|
||||
<description>
|
||||
Changes the parent of this [Node] to the [param new_parent]. The node needs to already have a parent.
|
||||
Changes the parent of this [Node] to the [param new_parent]. The node needs to already have a parent. The node's [member owner] is preserved if its owner is still reachable from the new location (i.e., the node is still a descendant of the new parent after the operation).
|
||||
If [param keep_global_transform] is [code]true[/code], the node's global transform will be preserved if supported. [Node2D], [Node3D] and [Control] support this argument (but [Control] keeps only position).
|
||||
</description>
|
||||
</method>
|
||||
|
||||
Reference in New Issue
Block a user