Skip to content

Commit 3a683db

Browse files
authored
Merge pull request #11292 from Calinou/upgrading-to-godot-4.5-resource-duplicate
Document `Resource.duplicate(true)` behavior change in Upgrading to Godot 4.5
2 parents d1afbaf + 4d0ac0d commit 3a683db

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

tutorials/migrating/upgrading_to_godot_4.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Method ``create_action`` adds a new ``backward_undo_ops`` optional parameter
195195
Behavior changes
196196
----------------
197197

198-
In 4.1 some behavior changes have been introduced, which might require you to adjust your project.
198+
In 4.1, some behavior changes have been introduced, which might require you to adjust your project.
199199

200200
================================================================================================================================================================================================== ===========
201201
Change Introduced

tutorials/migrating/upgrading_to_godot_4.3.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ Type renamed to ``EditorSceneFormatImporterFBX2GLTF``
224224
Behavior changes
225225
----------------
226226

227-
In 4.3 some behavior changes have been introduced, which might require you to adjust your project.
227+
In 4.3, some behavior changes have been introduced, which might require you to adjust your project.
228228

229229
Core
230230
~~~~
@@ -299,7 +299,7 @@ Multiplayer
299299

300300
This is a breaking change for the high-level multiplayer protocol making it incompatible with previous Godot versions.
301301
Upgrade both your server and client versions to Godot 4.3 to handle this change gracefully.
302-
302+
303303
Note that high-level multiplayer facilities are only ever meant to be compatible with server and client using the same Godot version. It is recommended to implement some kind of version checking.
304304

305305
Rendering

tutorials/migrating/upgrading_to_godot_4.5.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Method ``_get_option_icon`` changes return type from ``ImageTexture`` to ``Textu
188188
Behavior changes
189189
----------------
190190

191-
In 4.5 some behavior changes have been introduced, which might require you to adjust your project.
191+
In 4.5, some behavior changes have been introduced, which might require you to adjust your project.
192192

193193
TileMapLayer
194194
~~~~~~~~~~~~
@@ -216,6 +216,16 @@ new behavior, you must change the "Naming Version" option at the bottom of the I
216216
Core
217217
~~~~
218218

219+
.. note::
220+
221+
:ref:`Resource.duplicate(true) <class_Resource_method_duplicate>` (which performs
222+
deep duplication) now only duplicates resources internal to the resource file
223+
it's called on. In 4.4, this duplicated everything instead, including external resources.
224+
If you were deep-duplicating a resource that contained references to other
225+
external resources, those external resources aren't duplicated anymore. You must call
226+
:ref:`Resource.duplicate_deep(RESOURCE_DEEP_DUPLICATE_ALL) <class_Resource_method_duplicate_deep>`
227+
instead to keep the old behavior.
228+
219229
.. note::
220230

221231
:ref:`ProjectSettings.add_property_info() <class_ProjectSettings_method_add_property_info>`

0 commit comments

Comments
 (0)