drwhut / tabletop-club

An open-source platform for playing tabletop games in a physics-based 3D environment for Windows, macOS, and Linux! Made with the Godot Engine.
https://tabletopclub.net
MIT License
1.27k stars 55 forks source link

Fixed resetting type filter when changing packs #161

Closed elmodor closed 1 year ago

elmodor commented 1 year ago

Fixes/Solves I noticed that the PreviewFilter.gd _set_type_options sets the types only to the ones available in the selected pack. This was not the case because the function was not called when the pack was changed.

The selected type is remembered and set again if it is available in the new selected pack.