1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

prevent strings from being evaluated to just "true"

This commit is contained in:
firefly2442
2017-12-30 21:22:16 -07:00
parent 0294887a0c
commit 9ba9e37220

View File

@@ -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;