From 9ac2be4228b1dc8b9ccb1091680d80c3d7dc7673 Mon Sep 17 00:00:00 2001 From: rodri Date: Mon, 7 Oct 2024 16:59:46 +0000 Subject: allow parentheses in material names (this is getting ridiculous.) --- obj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3