summaryrefslogtreecommitdiff
path: root/fluid/io
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/io')
-rw-r--r--fluid/io/Project_Reader.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/fluid/io/Project_Reader.cxx b/fluid/io/Project_Reader.cxx
index 0eeee8014..a4c3695d6 100644
--- a/fluid/io/Project_Reader.cxx
+++ b/fluid/io/Project_Reader.cxx
@@ -320,11 +320,10 @@ Node *Project_Reader::read_children(Node *p, int merge, Strategy strategy, char
c = read_word(1);
// There can actually be two keywords here. The first one used to be a
- // "prefix" in Fluid < 1.5.0, but is no longer supported. So if we still
- // find the prefix in files, it will simply be prefixed to the name.
+ // "prefix", i.e. class attributes.
if (strcmp(c,"{") && t->is_class()) { // <prefix> <name>
- std::string tmp = std::string {t->name() } + " " + c;
- t->name(tmp.c_str());
+ ((Class_Node*)t)->prefix( t->name() );
+ t->name( c );
c = read_word(1);
}