diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-07-28 18:17:29 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-07-28 18:17:29 (GMT) |
commit | cc803576dcc4810d1ba415895b83ac9a3079de2f (patch) | |
tree | e5dcee5127de5f867a694e6831b4e0de38b612fd /dxflinextrude.cc | |
parent | 8e9b8512367f83e766b1a3676fb326ef216b7e6d (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 'dxflinextrude.cc')
-rw-r--r-- | dxflinextrude.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dxflinextrude.cc b/dxflinextrude.cc index 01c0319..ef54aa3 100644 --- a/dxflinextrude.cc +++ b/dxflinextrude.cc @@ -155,13 +155,11 @@ static void add_slice(PolySet *ps, DxfData::Path *pt, double rot1, double rot2, } } -static QCache<QString,PolySetPtr> ps_cache(100); - PolySet *DxfLinearExtrudeNode::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); @@ -226,7 +224,7 @@ PolySet *DxfLinearExtrudeNode::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; } |