[io_mesh_qfmdl] Skip space after parsing a value

Fixes a bogus error on the likes of offset = { x = 0; y = 0 }; (ie,
between the 0 and } )
This commit is contained in:
Bill Currie 2022-05-06 15:08:56 +09:00
parent 5b103f2570
commit 9c7c081772
1 changed files with 2 additions and 0 deletions

View File

@ -173,9 +173,11 @@ class pldata:
"Unexpected character (expected '=')")
self.pos += 1
value = self.parse()
self.skip_space()
if self.src[self.pos] == ';':
self.pos += 1
elif self.src[self.pos] != '}':
print(self.src[self.pos])
raise PListError(self.line,
"Unexpected character (wanted ';' or '}')")
item[key] = value