summaryrefslogtreecommitdiff
path: root/dxfrotextrude.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dxfrotextrude.cc')
-rw-r--r--dxfrotextrude.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/dxfrotextrude.cc b/dxfrotextrude.cc
index 955dbc8..7af70f3 100644
--- a/dxfrotextrude.cc
+++ b/dxfrotextrude.cc
@@ -89,14 +89,12 @@ void register_builtin_dxf_rotate_extrude()
builtin_modules["dxf_rotate_extrude"] = new DxfRotateExtrudeModule();
}
-static QCache<QString,PolySetPtr> ps_cache(100);
-
PolySet *DxfRotateExtrudeNode::render_polyset(render_mode_e) const
{
QString key = mk_cache_id();
- if (ps_cache.contains(key))
- return ps_cache[key]->ps->link();
+ if (PolySet::ps_cache.contains(key))
+ return PolySet::ps_cache[key]->ps->link();
DxfData dxf(fn, fs, fa, filename, layername, origin_x, origin_y, scale);
@@ -158,7 +156,7 @@ PolySet *DxfRotateExtrudeNode::render_polyset(render_mode_e) const
}
}
- ps_cache.insert(key, new PolySetPtr(ps->link()));
+ PolySet::ps_cache.insert(key, new PolySetPtr(ps->link()));
return ps;
}
contact: Jan Huwald // Impressum