summaryrefslogtreecommitdiff
path: root/dxfrotextrude.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-28 18:17:29 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-28 18:17:29 (GMT)
commitcc803576dcc4810d1ba415895b83ac9a3079de2f (patch)
treee5dcee5127de5f867a694e6831b4e0de38b612fd /dxfrotextrude.cc
parent8e9b8512367f83e766b1a3676fb326ef216b7e6d (diff)
Clifford Wolf:
Improved animation and polycaching git-svn-id: http://svn.clifford.at/openscad/trunk@85 b57f626f-c46c-0410-a088-ec61d464b74c
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