From f5ea27e587ca8d96314aefb6f188e9af14000066 Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 23 Nov 2021 12:53:31 +0100 Subject: [PATCH] Mention that replace_by doesn't free the node (cherry picked from commit 58a3ea545338eb237ed17993e264b632a53a5e10) --- doc/classes/Node.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index 026ac2a2975..5a1fd5af140 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -521,6 +521,7 @@ Replaces a node in a scene by the given one. Subscriptions that pass through this node will be lost. + Note that the replaced node is not automatically freed, so you either need to keep it in a variable for later use or free it using [method Object.free].