Fix build for the new 3.x branch.

This commit is contained in:
Relintai 2021-11-17 14:03:51 +01:00
parent 49b594130d
commit 413b8c0f26
2 changed files with 8 additions and 0 deletions

View File

@ -59,7 +59,11 @@ Error EditorImportColladaMdr::import(const String &p_source_file, const String &
Error erri;
#if VERSION_MAJOR == 3 && VERSION_MINOR > 4
Node *n = _importer->import_scene(p_source_file, 0, 15, 0, nullptr, &erri);
#else
Node *n = _importer->import_scene(p_source_file, 0, 15, nullptr, &erri);
#endif
ERR_FAIL_COND_V(!n, Error::ERR_PARSE_ERROR);

View File

@ -60,7 +60,11 @@ Error EditorImportGLTFMdr::import(const String &p_source_file, const String &p_s
Error erri;
#if VERSION_MAJOR == 3 && VERSION_MINOR > 4
Node *n = _importer->import_scene(p_source_file, 0, 15, 0, nullptr, &erri);
#else
Node *n = _importer->import_scene(p_source_file, 0, 15, nullptr, &erri);
#endif
ERR_FAIL_COND_V(!n, Error::ERR_PARSE_ERROR);