diff options
| author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2023-06-02 12:19:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-02 12:19:38 +0200 |
| commit | 300b73607435fa9d7f71b813bd8b12b8ea4d5c64 (patch) | |
| tree | 9b7952e6c1f991ce0863c57858d70db632ecac42 | |
| parent | 621d68e4129e7e343ff21eb3a5f4e8c1d6bbf456 (diff) | |
| parent | aeb9b8381aad4800fc9b67e07979e061c9cddd5b (diff) | |
| download | redot-engine-300b73607435fa9d7f71b813bd8b12b8ea4d5c64.tar.gz | |
Merge pull request #77751 from gongpha/crash!-lmnode-null-owner
Add null checking when finding a lightmap baking path
| -rw-r--r-- | editor/plugins/lightmap_gi_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/lightmap_gi_editor_plugin.cpp b/editor/plugins/lightmap_gi_editor_plugin.cpp index 6ba2072f72..b549a958e6 100644 --- a/editor/plugins/lightmap_gi_editor_plugin.cpp +++ b/editor/plugins/lightmap_gi_editor_plugin.cpp @@ -79,7 +79,7 @@ void LightmapGIEditorPlugin::_bake_select_file(const String &p_file) { switch (err) { case LightmapGI::BAKE_ERROR_NO_SAVE_PATH: { String scene_path = lightmap->get_scene_file_path(); - if (scene_path.is_empty()) { + if (scene_path.is_empty() && lightmap->get_owner()) { scene_path = lightmap->get_owner()->get_scene_file_path(); } if (scene_path.is_empty()) { |
