src/vertexmap.cpp

changeset 309
d862721d19a3
parent 264
76a025db4948
child 333
07e65a4c6611
equal deleted inserted replaced
308:daa8770b9d26 309:d862721d19a3
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 {

mercurial