mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-14 16:09:06 +07:00
remove atlas per pixels per unit property
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"texture" : "image.png",
|
||||
"pixels_per_unit" : 2,
|
||||
"regions" : [{
|
||||
"name" : "sprite",
|
||||
"pivot" : { "x" : 1, "y" : 2 },
|
||||
|
||||
@@ -99,7 +99,6 @@ TEST_CASE("library"){
|
||||
auto atlas_res = l.load_asset<atlas_asset>("atlas.json");
|
||||
REQUIRE(atlas_res);
|
||||
REQUIRE(atlas_res->content().texture() == texture_res);
|
||||
REQUIRE(math::approximately(atlas_res->content().pixels_per_unit(), 2.f));
|
||||
REQUIRE(atlas_res->content().regions().size() == 1);
|
||||
REQUIRE(atlas_res->content().find_region("sprite"));
|
||||
REQUIRE(atlas_res->content().find_region("sprite")->name == make_hash("sprite"));
|
||||
|
||||
Reference in New Issue
Block a user