diff options
author | firefly2442 <firefly2442@gmail.com> | 2017-12-30 21:22:16 -0700 |
---|---|---|
committer | firefly2442 <firefly2442@gmail.com> | 2017-12-30 21:22:16 -0700 |
commit | 9ba9e3722091c417c62bdc4637e9228fd32bb726 (patch) | |
tree | 13407ad0526a777b98b3b47502bb1e2301ee1784 /editor/plugins/spatial_editor_plugin.cpp | |
parent | 0294887a0ca1b42f9fddb3858d4ee304b3f4d055 (diff) |
prevent strings from being evaluated to just "true"
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
-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; |