From e1799320048bf49a8148b5a8ee2fdf94a9b2b863 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 3 Oct 2016 14:51:53 +0100 Subject: Don't assume absolute class name --- slicer/tool/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slicer/tool/parser.cpp b/slicer/tool/parser.cpp index 302ea63..d61c8a6 100644 --- a/slicer/tool/parser.cpp +++ b/slicer/tool/parser.cpp @@ -583,7 +583,7 @@ namespace Slicer { Slicer::defineMODELPART(const std::string & type, const Slice::TypePtr & stype, const Slice::StringList & metadata) const { if (auto cmp = metaDataValue("slicer:custommodelpart:", metadata)) { - fprintbf(cpp, "CUSTOMMODELPARTFOR(%s, %s< %s >, ::%s);\n\n", + fprintbf(cpp, "CUSTOMMODELPARTFOR(%s, %s< %s >, %s);\n\n", type, getBasicModelPart(stype), type, boost::algorithm::replace_all_copy(*cmp, ".", "::")); } else { -- cgit v1.2.3