@editable Optionals issues with "Set To Value"

Reference ID

dca40796-4589-cddd-a4e0-98bb122d6d88

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Verse

Summary

@editable optionals not working correctly when clicking “Set To Value”

Steps to Reproduce

create a class of @editable optionals, add an array of them to a creative_device subclass, and try to set values.

Expected Result

for updates to happen when clicking “Set To Value”

Observed Result

In order to set optional values after clicking “Set To Value” you have to, Save, Click off of the device, and Click back on the device.

Platform(s)

windows

Additional Notes

noticed it tends to happen (at least for me) more with ?type rather than ?type but other people have reported it happening with what is working for me.

Minimal repro:

hello_world_device := class(creative_device):
    @editable Arr: []?[]?int = array{}
    # Runs when the device is started in a running game
    OnBegin<override>()<suspends>:void=
        # TODO: Replace this with your code
        Print("Hello, world!")
        Print("2 + 2 = {2 + 2}")

Build, place that device in the world, try to set an int in that nested array