mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
[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:
parent
5b103f2570
commit
9c7c081772
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue