You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding to the field (msg.add_players_in_game(1)) works fine at first.
However, once you clear the field (msg.clear_players_in_game()), further additions don't work since the field seems to be getting reset to a singular int (I think). Per the language guide, the default value of an cleared repeated field should be an empty array.
Error message:
Invalid call. Nonexistent function 'append' in base 'int'.
This should only have two major changes:
- fixesoniksan#21: the "clear" method for repeated fields now sets it to an array instead of the field's type, e.g. int32
- fixesoniksan#22: now has a setter for repeated fields
I have a repeated proto3 field:
Adding to the field (
msg.add_players_in_game(1)
) works fine at first.However, once you clear the field (
msg.clear_players_in_game()
), further additions don't work since the field seems to be getting reset to a singular int (I think). Per the language guide, the default value of an cleared repeated field should be an empty array.Error message:
For reference, the generated code:
This is happening on version 0.4.4 on Godot 3.4.
The text was updated successfully, but these errors were encountered: