summaryrefslogtreecommitdiff
path: root/dxflinextrude.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-06 10:48:51 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-06 10:48:51 (GMT)
commit2ff53c89ce5c1e30d6f001fdd4361b8fcad36e82 (patch)
tree3b4607c9e49d5eb53859086a6299dffbae5f67ca /dxflinextrude.cc
parent6575732286d3f8909972d3705b748c6cfc02f8a8 (diff)
Clifford Wolf:
Added caching of messages along wioth synthesis products git-svn-id: http://svn.clifford.at/openscad/trunk@215 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'dxflinextrude.cc')
-rw-r--r--dxflinextrude.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/dxflinextrude.cc b/dxflinextrude.cc
index 06d7891..928bf5c 100644
--- a/dxflinextrude.cc
+++ b/dxflinextrude.cc
@@ -159,9 +159,12 @@ static void add_slice(PolySet *ps, DxfData::Path *pt, double rot1, double rot2,
PolySet *DxfLinearExtrudeNode::render_polyset(render_mode_e) const
{
QString key = mk_cache_id();
- if (PolySet::ps_cache.contains(key))
+ if (PolySet::ps_cache.contains(key)) {
+ PRINT(PolySet::ps_cache[key]->msg);
return PolySet::ps_cache[key]->ps->link();
+ }
+ print_messages_push();
DxfData dxf(fn, fs, fa, filename, layername, origin_x, origin_y, scale);
PolySet *ps = new PolySet();
@@ -225,7 +228,9 @@ PolySet *DxfLinearExtrudeNode::render_polyset(render_mode_e) const
}
}
- PolySet::ps_cache.insert(key, new PolySetPtr(ps->link()));
+ PolySet::ps_cache.insert(key, new PolySet::ps_cache_entry(ps->link()));
+ print_messages_pop();
+
return ps;
}
contact: Jan Huwald // Impressum