Bläddra i källkod

Merge pull request #32116 from KoBeWi/dupinit

Mention constructor arguments in duplicate() doc
Rémi Verschelde 6 år sedan
förälder
incheckning
8fea4053b3
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      doc/classes/Node.xml

+ 1 - 0
doc/classes/Node.xml

@@ -171,6 +171,7 @@
 			<description>
 			<description>
 				Duplicates the node, returning a new node.
 				Duplicates the node, returning a new node.
 				You can fine-tune the behavior using the [code]flags[/code] (see [enum DuplicateFlags]).
 				You can fine-tune the behavior using the [code]flags[/code] (see [enum DuplicateFlags]).
+				[b]Note:[/b] It will not work properly if the node contains a script with constructor arguments (i.e. needs to supply arguments to [method Object._init] method). In that case, the node will be duplicated without a script.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="find_node" qualifiers="const">
 		<method name="find_node" qualifiers="const">