Преглед изворни кода

Load the quad data immediately.

Sam Jaffe пре 6 година
родитељ
комит
4a4780050c
1 измењених фајлова са 3 додато и 4 уклоњено
  1. 3 4
      engine/src/serial.cxx

+ 3 - 4
engine/src/serial.cxx

@@ -34,9 +34,8 @@ namespace engine {
   graphics::object to_object(Json::Value const & json) {
     flyweight<graphics::material> mat = to_material(json["material"]);
     auto frame_size = to_vec2(json["frameSize"]);
-    return {{to_vec2(json["position"]), mat.actual().size() * frame_size},
-            {},
-            mat,
-            {{}, frame_size}};
+    math::dim2::rectangle pos = {to_vec2(json["position"]),
+                                 mat.actual().size() * frame_size};
+    return {pos, pos, mat, {{{0, 0}}, frame_size}};
   }
 }