159 }; |
159 }; |
160 processed.append(modelName); |
160 processed.append(modelName); |
161 Model* model = this->findModelByName(modelName); |
161 Model* model = this->findModelByName(modelName); |
162 for (int i = 0; i < model->size(); i += 1) |
162 for (int i = 0; i < model->size(); i += 1) |
163 { |
163 { |
164 const QString referenceName = model->getObjectProperty(i, linetypes::Property::ReferenceName).toString(); |
164 const QString referenceName = model->getObjectProperty(i, ldraw::Property::ReferenceName).toString(); |
165 if (not referenceName.isEmpty() |
165 if (not referenceName.isEmpty() |
166 and openModels.find(referenceName) == std::end(openModels) |
166 and openModels.find(referenceName) == std::end(openModels) |
167 and not missing.contains(referenceName)) |
167 and not missing.contains(referenceName)) |
168 { |
168 { |
169 try |
169 try |