|
|
@@ -59,7 +59,7 @@ namespace engine {
|
|
|
identity<graphics::material> mat = to_material(json["material"], mgr);
|
|
|
auto frame_size = to_vec2(json["frameSize"], make_vector(1.f, 1.f));
|
|
|
auto origin = to_vec2(json["position"]);
|
|
|
- return mgr.create_object(mat, origin, frame_size);
|
|
|
+ return mgr.create_object(mat, origin, frame_size, json["scale"].asFloat());
|
|
|
// math::dim2::rectangle pos = {to_vec2(json["position"]),
|
|
|
// mat.actual().size() * frame_size};
|
|
|
// return {pos, pos, mat, {{{0, 0}}, frame_size}};
|