summaryrefslogtreecommitdiff
path: root/modules/fbx
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-03 22:21:24 +0100
committerGitHub <noreply@github.com>2022-02-03 22:21:24 +0100
commitf8f19b313d62b707467c54d245b9c3e0ad53f34f (patch)
tree975f9c64fe51c3809c7c3b2eb0cd46d3563d2bd2 /modules/fbx
parent025e778020dde6dcee89f5ae1e2a63ccddc24340 (diff)
parentadbe948bda202209b55249198e1837324e703ddb (diff)
Merge pull request #57562 from AnilBK/string-add-contains
String: Add contains().
Diffstat (limited to 'modules/fbx')
-rw-r--r--modules/fbx/editor_scene_importer_fbx.cpp2
1 files changed, 1 insertions, 1 deletions
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");