377 } |
377 } |
378 } |
378 } |
379 |
379 |
380 void DocumentManager::modelModified() |
380 void DocumentManager::modelModified() |
381 { |
381 { |
382 Model* model = qobject_cast<Model*>(this->sender()); |
382 Model* const model = qobject_cast<Model*>(this->sender()); |
383 const std::optional<ModelId> modelId = this->findIdForModel(model); |
383 const std::optional<ModelId> modelId = this->findIdForModel(model); |
384 if (modelId.has_value()) { |
384 if (modelId.has_value()) { |
385 this->polygonCaches[*modelId].needRecache = true; |
385 this->polygonCaches[*modelId].needRecache = true; |
386 } |
386 } |
387 } |
387 } |