156 { |
156 { |
157 info.transform = glm::translate(glm::identity<glm::mat4>(), info.point); |
157 info.transform = glm::translate(glm::identity<glm::mat4>(), info.point); |
158 info.transformSet = true; |
158 info.transformSet = true; |
159 } |
159 } |
160 float scale = 1.0f; |
160 float scale = 1.0f; |
161 for (const ModelId objectId : info.objects) |
161 for (const ElementId objectId : info.objects) |
162 { |
162 { |
163 const std::optional<int> index = model->find(objectId); |
163 const std::optional<int> index = model->find(objectId); |
164 if (index.has_value()) { |
164 if (index.has_value()) { |
165 edges(this->model->at(unsigned_cast(index.value())), [&](Edge&& edge) |
165 edges(this->model->at(unsigned_cast(index.value())), [&](Edge&& edge) |
166 { |
166 { |