remove atlas per pixels per unit property

This commit is contained in:
2019-03-26 10:32:02 +07:00
parent cdb15dd58d
commit 37fb586e27
5 changed files with 1 additions and 30 deletions

View File

@@ -1,6 +1,5 @@
{
"texture" : "image.png",
"pixels_per_unit" : 2,
"regions" : [{
"name" : "sprite",
"pivot" : { "x" : 1, "y" : 2 },

View File

@@ -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"));