summaryrefslogtreecommitdiff
path: root/fluid/io
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-12-06 02:29:57 +0100
committerMatthias Melcher <github@matthiasm.com>2025-12-06 02:29:57 +0100
commit5e7ed2f6534bf8d99688e375c56f44f792bdf7bb (patch)
treebd59017682dad0a5887faf4b6cfe0bc8389ca9c6 /fluid/io
parentb2746ad28693d61cecaa1e9fb57ab93c0050e3d3 (diff)
Fluid: fix class prefix user input check.
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);
}