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
Whenever you create a script that inherits from the ActionIcon script, it can cause _base_path to be set to the wrong value and whenever the icon get's changed, it will no longer point to the right directory.
Possible Solution
instead of making _base_path a static variable that you set inside of the _init() function, couldn't it be set as a constant instead? since the script already relies on being a in a specific path (the icon for the script has a fully defined path). Trying this locally seems to work just fine
The text was updated successfully, but these errors were encountered:
tbh I don't remember why I made it static variable. It allows to move the addon (except the icon, but it's not important), however it's not very useful 🤔
godot version 4.3
Whenever you create a script that inherits from the ActionIcon script, it can cause
_base_path
to be set to the wrong value and whenever the icon get's changed, it will no longer point to the right directory.Possible Solution
instead of making _base_path a static variable that you set inside of the _init() function, couldn't it be set as a constant instead? since the script already relies on being a in a specific path (the icon for the script has a fully defined path). Trying this locally seems to work just fine
The text was updated successfully, but these errors were encountered: