mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-14 16:09:06 +07:00
remove materials from model asset
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
{
|
||||
"mesh" : "mesh.e2d_mesh",
|
||||
"materials" : [
|
||||
"material.json"
|
||||
]
|
||||
"mesh" : "mesh.e2d_mesh"
|
||||
}
|
||||
|
||||
@@ -179,8 +179,6 @@ TEST_CASE("library"){
|
||||
auto model_res = l.load_asset<model_asset>("model.json");
|
||||
REQUIRE(model_res);
|
||||
REQUIRE(model_res->content().mesh());
|
||||
REQUIRE(model_res->content().material_count() == 1);
|
||||
REQUIRE(model_res->content().material(0));
|
||||
REQUIRE_FALSE(model_res->content().mesh()->content().vertices().empty());
|
||||
REQUIRE(model_res->content().mesh()->content().indices_submesh_count() == 1);
|
||||
REQUIRE_FALSE(model_res->content().mesh()->content().indices(0).empty());
|
||||
|
||||
Reference in New Issue
Block a user