From adbe948bda202209b55249198e1837324e703ddb Mon Sep 17 00:00:00 2001 From: Anilforextra Date: Thu, 3 Feb 2022 21:48:38 +0545 Subject: String: Add contains(). --- modules/fbx/editor_scene_importer_fbx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/fbx/editor_scene_importer_fbx.cpp') diff --git a/modules/fbx/editor_scene_importer_fbx.cpp b/modules/fbx/editor_scene_importer_fbx.cpp index 4cca907bf2..758c47eecc 100644 --- a/modules/fbx/editor_scene_importer_fbx.cpp +++ b/modules/fbx/editor_scene_importer_fbx.cpp @@ -123,7 +123,7 @@ Node3D *EditorSceneFormatImporterFBX::import_scene(const String &p_path, uint32_ bool corrupt = false; // safer to check this way as there can be different formatted headers - if (fbx_header_string.find("Kaydara FBX Binary", 0) != -1) { + if (fbx_header_string.contains("Kaydara FBX Binary")) { is_binary = true; print_verbose("[doc] is binary"); -- cgit v1.2.3