summaryrefslogtreecommitdiff
path: root/src/surface.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2010-08-28 19:21:44 (GMT)
committerMarius Kintel <marius@kintel.net>2010-10-31 00:42:38 (GMT)
commitd0390c41a2268ce23d3010c7085e4365725d2f49 (patch)
treed3f2e6b0cc58a66ff759740ddcf27191335076aa /src/surface.cc
parent93f3d4a1b6251523428179261dc070df44b0b317 (diff)
Added AbstractNode::name(), changed CSGTextRenderer to use this instead of the rtti name
Diffstat (limited to 'src/surface.cc')
-rw-r--r--src/surface.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/surface.cc b/src/surface.cc
index 9b05fe9..b5f631e 100644
--- a/src/surface.cc
+++ b/src/surface.cc
@@ -51,6 +51,7 @@ public:
return visitor.visit(state, *this);
}
virtual std::string toString() const;
+ virtual std::string name() const { return "surface"; }
QString filename;
bool center;
@@ -207,7 +208,7 @@ std::string SurfaceNode::toString() const
{
std::stringstream stream;
- stream << "surface(file = \"" << this->filename
+ stream << this->name() << "(file = \"" << this->filename
<< "\", center = " << (this->center ? "true" : "false") << ")";
return stream.str();
contact: Jan Huwald // Impressum