You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user