Scene tree isn't available when QodotMap is instantiated outside of a scene tree. In this case, use Engine.get_main_loop() to yield control to the engine to keep the editor responsive while building the map.
Using Engine.get_main_loop() in every scenario (even when the scene tree is available) causes the editor to crash. Using it as a fallback does not seem to have any problems, though.
Scene tree isn't available when QodotMap is instantiated outside of a scene tree. In this case, use
Engine.get_main_loop()
to yield control to the engine to keep the editor responsive while building the map.Using
Engine.get_main_loop()
in every scenario (even when the scene tree is available) causes the editor to crash. Using it as a fallback does not seem to have any problems, though.