Correct inverted logic around include prefixes. (#5689)

4d1a9f8d9e inverted the logic around
keeping the include prefix. This change fixes the error.
This commit is contained in:
Michael Beardsworth 2019-12-30 10:34:01 -08:00 committed by Wouter van Oortmerssen
parent a2c12900aa
commit bcd58a159b
1 changed files with 2 additions and 2 deletions

View File

@ -76,10 +76,10 @@ std::string GenerateFBS(const Parser &parser, const std::string &file_name) {
continue;
std::string basename;
if(parser.opts.keep_include_path) {
basename = flatbuffers::StripExtension(it->second);
} else {
basename = flatbuffers::StripPath(
flatbuffers::StripExtension(it->second));
} else {
basename = flatbuffers::StripExtension(it->second);
}
schema += "include \"" + basename + ".fbs\";\n";
num_includes++;