From b31457e40a5178320d1aefa588d2d9fc2c5bdfc0 Mon Sep 17 00:00:00 2001 From: rodri Date: Fri, 3 May 2024 12:55:50 +0000 Subject: attach material properties to points and lines as well. --- obj.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/obj.c b/obj.c index e1b1b4e..50c430a 100644 --- a/obj.c +++ b/obj.c @@ -665,6 +665,8 @@ objparse(char *file) o = alloco("default"); pusho(obj, o); } + if(m != nil) + e->mtl = m; addelem(o, e); } break; @@ -746,6 +748,8 @@ Line2: o = alloco("default"); pusho(obj, o); } + if(m != nil) + e->mtl = m; addelem(o, e); } break; -- cgit v1.2.3