src/polygoncache.h

changeset 305
d891da20abca
parent 264
76a025db4948
child 309
d862721d19a3
--- a/src/polygoncache.h	Tue Jun 28 22:18:11 2022 +0300
+++ b/src/polygoncache.h	Wed Jun 29 14:11:58 2022 +0300
@@ -18,11 +18,11 @@
 struct PolygonCache
 {
 	using vector_type = std::vector<WithId<PolygonElement>>;
-	vector_type cachedPolygons;
+	vector_type polygons;
 	bool needRecache = true;
 };
 
-const PolygonCache::vector_type* getCachedPolygons(
+void recacheIfNeeded(
 	PolygonCache* cache,
 	Model* model,
 	class DocumentManager* documents);

mercurial