diff options
Diffstat (limited to 'fluid/io/Project_Reader.cxx')
| -rw-r--r-- | fluid/io/Project_Reader.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fluid/io/Project_Reader.cxx b/fluid/io/Project_Reader.cxx index 0e2809685..0eeee8014 100644 --- a/fluid/io/Project_Reader.cxx +++ b/fluid/io/Project_Reader.cxx @@ -319,9 +319,12 @@ Node *Project_Reader::read_children(Node *p, int merge, Strategy strategy, char t->name(read_word()); 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. if (strcmp(c,"{") && t->is_class()) { // <prefix> <name> - ((Class_Node*)t)->prefix(t->name()); - t->name(c); + std::string tmp = std::string {t->name() } + " " + c; + t->name(tmp.c_str()); c = read_word(1); } |
