ref: 9ac2be4228b1dc8b9ccb1091680d80c3d7dc7673
parent: 78739a666a7031db16648c7d629f567442ea16bd
author: rodri <[email protected]>
date: Mon Oct 7 12:59:46 EDT 2024
allow parentheses in material names (this is getting ridiculous.)
--- a/obj.c
+++ b/obj.c
@@ -911,7 +911,7 @@
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);