aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-10-07 16:59:46 +0000
committerrodri <rgl@antares-labs.eu>2024-10-07 16:59:46 +0000
commit9ac2be4228b1dc8b9ccb1091680d80c3d7dc7673 (patch)
tree35700267ffb32665a9fee7d446342a430a934454
parent78739a666a7031db16648c7d629f567442ea16bd (diff)
downloadlibobj-9ac2be4228b1dc8b9ccb1091680d80c3d7dc7673.tar.gz
libobj-9ac2be4228b1dc8b9ccb1091680d80c3d7dc7673.tar.bz2
libobj-9ac2be4228b1dc8b9ccb1091680d80c3d7dc7673.zip
allow parentheses in material names (this is getting ridiculous.)
-rw-r--r--obj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/obj.c b/obj.c
index 95fa11f..7a10a88 100644
--- a/obj.c
+++ b/obj.c
@@ -911,7 +911,7 @@ Line2:
p = buf;
do{
*p++ = c;
- }while(c = Bgetc(bin), (isalnum(c) || c == '.' || c == '_' || c == '-') && p-buf < sizeof(buf)-1);
+ }while(c = Bgetc(bin), (isalnum(c) || c == '.' || c == '_' || c == '-' || c == '(' || c == ')') && p-buf < sizeof(buf)-1);
*p = 0;
if(obj->materials != nil && (m = getmtl(obj->materials, buf)) == nil){
error("no material '%s' found", buf);