diff options
author | Noshyaar <poommetee@protonmail.com> | 2017-12-31 12:35:39 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-31 12:35:39 +0700 |
commit | 16158d8db79459529a58e01d6f01f24bd851b3f1 (patch) | |
tree | 56740131c24d98473018c2b544ea460eb861fdee /editor/plugins | |
parent | 7e2941f62bc4e4f400ba7c634ad422c35d50ad7e (diff) | |
parent | 9ba9e3722091c417c62bdc4637e9228fd32bb726 (diff) |
Merge pull request #15209 from firefly2442/StringBooleanProblem
prevent strings from being evaluated to just "true"
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index b26038fe09..e0a697ec26 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -3213,7 +3213,7 @@ bool SpatialEditorViewport::can_drop_data_fw(const Point2 &p_point, const Varian continue; } memdelete(instanced_scene); - } else if (type == "Mesh" || "ArrayMesh" || "PrimitiveMesh") { + } else if (type == "Mesh" || type == "ArrayMesh" || type == "PrimitiveMesh") { Ref<Mesh> mesh = ResourceLoader::load(files[i]); if (!mesh.is_valid()) { continue; |