diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-31 13:42:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-31 13:42:09 +0200 |
commit | c9ce5367e3d35074193eb3999d9e2f9cbb8576c6 (patch) | |
tree | 09c92311fa145a2a24183b8ccd656021f834e6cc | |
parent | 3c7f09bfeb201849e8f8f25d9391b19cd4553f80 (diff) | |
parent | 2ba893e3ce80a92ac737c51a3fa9c840bdc5ca8a (diff) |
Merge pull request #49213 from Calinou/doc-resource-duplicate-copy-export-only
Document `Resource.duplicate()` only copying exported variables' values
-rw-r--r-- | doc/classes/Resource.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/Resource.xml b/doc/classes/Resource.xml index 2548f8d911..75736798fd 100644 --- a/doc/classes/Resource.xml +++ b/doc/classes/Resource.xml @@ -27,6 +27,7 @@ <description> Duplicates the resource, returning a new resource. By default, sub-resources are shared between resource copies for efficiency. This can be changed by passing [code]true[/code] to the [code]subresources[/code] argument which will copy the subresources. [b]Note:[/b] If [code]subresources[/code] is [code]true[/code], this method will only perform a shallow copy. Nested resources within subresources will not be duplicated and will still be shared. + [b]Note:[/b] When duplicating a resource, only [code]export[/code]ed properties are copied. Other properties will be set to their default value in the new resource. </description> </method> <method name="emit_changed"> |