diff options
author | Mario Liebisch <mario.liebisch@gmail.com> | 2023-10-21 17:00:18 +0200 |
---|---|---|
committer | Mario Liebisch <mario.liebisch@gmail.com> | 2023-10-21 17:00:18 +0200 |
commit | f2bcd7d61f31d0a1204c3724660dc501e4b2b67f (patch) | |
tree | 3e0a7db90dec6213fe1735425ef60926fa320f77 /servers/rendering/renderer_canvas_cull.cpp | |
parent | f71f4b80e32f6e98a4cd3cb1c06071223297e8fc (diff) | |
download | redot-engine-f2bcd7d61f31d0a1204c3724660dc501e4b2b67f.tar.gz |
GDExtension: Fixed error on loading extensions
Previously, before loading an extension, the editor just tried to
retrieve the extension by path to test if it's been loaded already.
While this is handled gracefully, it ignored an error thrown inside
`GDExtensionManager::get_extension()`, that would essentially still
report a not yet loaded extension to the engine's log:
```
ERROR: Condition "!E" is true. Returning: Ref<GDExtension>()
at: GDExtensionManager::get_extension (core\extension\gdextension_manager.cpp:165)
```
This change actively checks whether the extension path is known and only
then proceeds to actually return the already loaded extension or loads
and returns the new one otherwise.
Diffstat (limited to 'servers/rendering/renderer_canvas_cull.cpp')
0 files changed, 0 insertions, 0 deletions