rapid-router
rapid-router copied to clipboard
level editor: character change does not persist after save
Describe the bug When a level is saved with a non-van character, going back to edit the level shows the van again instead of the other character.
To Reproduce Steps to reproduce the behaviour:
- Go to Level Editor and make a new map
- Go to the Character tab and change the character to someone other than the van (i.e. Kirsty)
- Save the level
- When the popup appears asking if you'd like to edit or play, click edit
- Go back to the Character tab - see that the character pictured is the van and the dropdown is empty. This also happens if you save the level and go back to it later to edit
Expected behaviour When returning to a created level to edit it, the character should be the one you set when you created the level
Screenshots
What you see when you return to a created level with a non-van character to edit:
Additional context This might be related to the bug from task #1621
Good places to start
- Level editor template: https://github.com/ocadotechnology/rapid-router/blob/master/game/templates/game/level_editor.html
- Level editor view: https://github.com/ocadotechnology/rapid-router/blob/master/game/views/level_editor.py