diff --git a/src/core/tests/pwcore_test_mesh.cpp b/src/core/tests/pwcore_test_mesh.cpp index 0018e07..5b11acc 100644 --- a/src/core/tests/pwcore_test_mesh.cpp +++ b/src/core/tests/pwcore_test_mesh.cpp @@ -23,11 +23,10 @@ auto main() -> int { .topology = pw::primitives::topology_type::triangle_list }; - auto mesh = pw::mesh{.geometry = geom}; - - mesh.attributes.emplace_back( - pw::attribute{.type = pw::attribute::normals, - .data = std::vector{pw::vector{1.2f, 2.4f, 4.8f}}}); + auto mesh = pw::mesh{ + .geometry = geom, + .attributes = {{.type = pw::attribute::normals, + .data = std::vector{pw::vector{1.2f, 2.4f, 4.8f}}}}}; for (auto i : geom.indices) { std::print("vertex[{}]({})\n", i, geom.vertices[i]);