-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Steps to recreate issue:
0) Create a level with two rectangle shapes in them (just use default names)
- Add a custom property to 'Rectangle_1' of type 'Linked item' with any name
- Choose 'Rectangle_2' for the value of the custom property you just created
- Save the level
- Restart Gleed2D
- Load the level you just saved
- Click on 'Rectangle_1'
- Click on the dropdown box for the custom property (as if you were going to edit the value)
- An error will pop up saying, "Unable to cast object of type 'System.String' to type 'Gleed2D.InGame.LinkedItem'."
If you save the level after doing these steps the custom property's value will be changed from 'Rectangle_2' to '$null$'.
I dug around in the code and tracked the cast that fails to line 24 of LinkedItemUiTypeEditor.cs in Gleed2D.Core.CustomUITypeEditors.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels