Skip to content

Renaming instances in the project editor does not rename it's level folder #769

@sooooosh

Description

@sooooosh

Describe the bug

Renaming a custom instance in the level editor will only change the instance ID in the main.xml, but not actually rename it's folder in levels/instances/. When trying to spawn the renamed instance, the game will crash since the instance doesn't have a level anymore.

Workaround is to manually rename the instance folder, but having it automatically rename would of course be much more convenient.

Steps to reproduce the issue

Create a custom instance.
Rename the instance via the project editor.
Spawn the renamed instance.
Crash.

Log file

No response

Minimal reproduction

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions