summaryrefslogtreecommitdiffstats
path: root/editor/project_converter_3_to_4.cpp
diff options
context:
space:
mode:
authorGarym3 <olivier.lefebvre96@gmail.com>2023-06-15 22:55:02 +0200
committerGarym3 <olivier.lefebvre96@gmail.com>2023-06-15 22:55:02 +0200
commite5d55e35c22c346476c518190a8018ec3fd624f8 (patch)
tree4520180f305b9ef163c2cacf55358ff103e31f7c /editor/project_converter_3_to_4.cpp
parent013a45706897af989703b944c7cd5f4f58a6c060 (diff)
downloadredot-engine-e5d55e35c22c346476c518190a8018ec3fd624f8.tar.gz
Fix runtime crash due to missing importer's name conversion inside .import files about OGG vorbis sound files
Diffstat (limited to 'editor/project_converter_3_to_4.cpp')
-rw-r--r--editor/project_converter_3_to_4.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/project_converter_3_to_4.cpp b/editor/project_converter_3_to_4.cpp
index a1dfbac719..e5b69a8c17 100644
--- a/editor/project_converter_3_to_4.cpp
+++ b/editor/project_converter_3_to_4.cpp
@@ -436,6 +436,8 @@ bool ProjectConverter3To4::convert() {
String &line = source_line.line;
if (line.contains("nodes/root_type=\"Spatial\"")) {
line = "nodes/root_type=\"Node3D\"";
+ } else if (line == "importer=\"ogg_vorbis\"") {
+ line = "importer=\"oggvorbisstr\"";
}
}
} else {