Repository navigation
🐛 Fixes
- Resolved an issue with the built-in updater throwing an error related to
editor_panelinsideupdate_button.gd. This was due to the added support for the new Editor Dock system introduced in0.12.
Manual Hotfix for 0.12 and 0.12.1 on Godot 4.6 or later
If you're encountering an error upon opening a Godot project with the addon installed in update_button.gd that outputs:
ERROR: res://addons/phantom_camera/scripts/panel/updater/update_button.gd:104 - Invalid call. Nonexistent function 'add_theme_color_override' in base 'Nil'.`
Then you can add the conditional checker (below) followed by an editor restart. That should make the updater work as usual and allow upgrading to this and future versions.
Inside update_button.gd:
# Line 101
_set_scale()
## THIS PART - Nest the 3 editor_plugin lines inside this conditional checker
if Engine.get_version_info().minor < 6:
editor_plugin.panel_button.add_theme_color_override("font_color", Color("#3AB99A"))
editor_plugin.panel_button.icon = load("res://addons/phantom_camera/icons/phantom_camera_updater_panel_icon.svg")
editor_plugin.panel_button.add_theme_color_override("icon_normal_color", Color("#3AB99A"))
show()