summaryrefslogtreecommitdiff
path: root/dxfrotextrude.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 /dxfrotextrude.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 'dxfrotextrude.cc')
-rw-r--r--dxfrotextrude.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/dxfrotextrude.cc b/dxfrotextrude.cc
index e2aca98..9855b91 100644
--- a/dxfrotextrude.cc
+++ b/dxfrotextrude.cc
@@ -21,6 +21,7 @@
#define INCLUDE_ABSTRACT_NODE_DETAILS
#include "openscad.h"
+#include "printutils.h"
#include <sys/types.h>
#include <sys/stat.h>
@@ -92,10 +93,12 @@ void register_builtin_dxf_rotate_extrude()
PolySet *DxfRotateExtrudeNode::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();
@@ -156,7 +159,9 @@ PolySet *DxfRotateExtrudeNode::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