From 5e7ed2f6534bf8d99688e375c56f44f792bdf7bb Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 6 Dec 2025 02:29:57 +0100 Subject: Fluid: fix class prefix user input check. --- fluid/io/Project_Reader.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'fluid/io') 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()) { // - 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); } -- cgit v1.2.3