PLY: fixing tests
This commit is contained in:
@@ -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.
|
* 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];
|
char filepath[FILE_MAX];
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
|
|||||||
@@ -446,10 +446,9 @@ TEST_F(ply_exporter_ply_data_test, SuzanneLoadPLYDataUV)
|
|||||||
{
|
{
|
||||||
PLYExportParams params;
|
PLYExportParams params;
|
||||||
params.export_uv = true;
|
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",
|
PlyData plyData = load_ply_data_from_blendfile("io_tests/blend_geometry/suzanne_all_data.blend",
|
||||||
params);
|
params);
|
||||||
EXPECT_EQ(plyData.UV_coordinates.size(), 542);
|
EXPECT_EQ(plyData.UV_coordinates.size(), 541);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(ply_exporter_ply_data_test, CubeLoadPLYDataUVDisabled)
|
TEST_F(ply_exporter_ply_data_test, CubeLoadPLYDataUVDisabled)
|
||||||
|
|||||||
Reference in New Issue
Block a user