Node::replace_by was not copying node properties - removed the dead code.

The code to copy node properties to the new node never worked, so there is no reason to keep the useless bits in there
This commit is contained in:
nemerle
2021-01-31 13:55:13 +01:00
parent 0f4e2cd40c
commit 022c2952fc
2 changed files with 5 additions and 27 deletions

View File

@ -623,10 +623,11 @@
</return>
<argument index="0" name="node" type="Node">
</argument>
<argument index="1" name="keep_data" type="bool" default="false">
<argument index="1" name="keep_groups" type="bool" default="false">
</argument>
<description>
Replaces a node in a scene by the given one. Subscriptions that pass through this node will be lost.
If [code]keep_groups[/code] is [code]true[/code], the [code]node[/code] is added to the same groups that the replaced node is in.
</description>
</method>
<method name="request_ready">