diff -r c93e4a1eaadb -r 232e7634cc8a src/polygoncache.h --- a/src/polygoncache.h Thu Jun 09 11:51:42 2022 +0300 +++ b/src/polygoncache.h Thu Jun 09 13:32:55 2022 +0300 @@ -3,6 +3,12 @@ #include "model.h" #include "gl/common.h" +template +struct WithId : T +{ + ModelId id; +}; + struct GetPolygonsContext { ModelId modelId; @@ -11,11 +17,11 @@ struct PolygonCache { - std::vector cachedPolygons; + std::vector> cachedPolygons; bool needRecache = true; }; -const std::vector& getCachedPolygons( +const std::vector>& getCachedPolygons( PolygonCache* cache, Model* model, class DocumentManager* documents);