godot-extended-libraries / godot-debug-menu

Display in-game FPS/performance/hardware metrics in a Godot 4.x project
https://github.com/godot-extended-libraries/godot-debug-menu-demo
MIT License
429 stars 16 forks source link

check for null environment in settings label update #14

Closed mieldepoche closed 1 year ago

mieldepoche commented 1 year ago

This adds a simple guard that prevents the addon from crashing at runtime if the ran scene is in 3d but doesn't have an environment. Oddly enough, I couldn't repeat the crash in a clean project with the addon alone, but the error still prints in the OS console output (though not the engine one..... :thinking: )

image

anyways this fixes the problem.