mirror of
https://github.com/godotengine/godot.git
synced 2025-01-27 20:30:54 +00:00
prevent strings from being evaluated to just "true"
This commit is contained in:
parent
0294887a0c
commit
9ba9e37220
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user