From 71c366f5cc07b00cbbd12e785f03ab52d24c2044 Mon Sep 17 00:00:00 2001 From: Aras Pranckevicius Date: Sun, 5 Mar 2023 21:50:10 +0200 Subject: [PATCH] PLY: fixing tests --- source/blender/editors/io/io_ply_ops.c | 2 +- source/blender/io/ply/tests/io_ply_exporter_test.cc | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/source/blender/editors/io/io_ply_ops.c b/source/blender/editors/io/io_ply_ops.c index 2d42fb8d2b3..b29ffaedeef 100644 --- a/source/blender/editors/io/io_ply_ops.c +++ b/source/blender/editors/io/io_ply_ops.c @@ -130,7 +130,7 @@ static void wm_ply_export_draw(bContext *UNUSED(C), wmOperator *op) /** * Return true if any property in the UI is changed. */ -static bool wm_ply_export_check(bContext *C, wmOperator *op) +static bool wm_ply_export_check(bContext *UNUSED(C), wmOperator *op) { char filepath[FILE_MAX]; bool changed = false; diff --git a/source/blender/io/ply/tests/io_ply_exporter_test.cc b/source/blender/io/ply/tests/io_ply_exporter_test.cc index 0a83e963c16..8e03794d5e7 100644 --- a/source/blender/io/ply/tests/io_ply_exporter_test.cc +++ b/source/blender/io/ply/tests/io_ply_exporter_test.cc @@ -446,10 +446,9 @@ TEST_F(ply_exporter_ply_data_test, SuzanneLoadPLYDataUV) { PLYExportParams params; params.export_uv = true; - params.vertex_colors = PLY_VERTEX_COLOR_SRGB; PlyData plyData = load_ply_data_from_blendfile("io_tests/blend_geometry/suzanne_all_data.blend", params); - EXPECT_EQ(plyData.UV_coordinates.size(), 542); + EXPECT_EQ(plyData.UV_coordinates.size(), 541); } TEST_F(ply_exporter_ply_data_test, CubeLoadPLYDataUVDisabled)