Skip to content

Region mover set_uid #917

@TokisanGames

Description

@TokisanGames

Last time I ran region_mover.gd in 4.5.1 it caused a bunch of duplicate UID errors.

WARNING: UID duplicate detected between res://scenes/terrains/world/terrain3d_04-06.res and res://scenes/terrains/world/terrain3d_03-07.res.
     at: _process_file_system (editor/file_system/editor_file_system.cpp:1377)

The task is to force a new uid after renaming files. It looks like after the final rename we can do something like:

	if ResourceLoader.get_resource_uid(path) == ResourceUID.INVALID_ID:
		ResourceSaver.set_uid(path, ResourceUID.create_id())

See:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    Status

    1.2

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions