aboutsummaryrefslogtreecommitdiff
path: root/obj.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-05-03 12:55:50 +0000
committerrodri <rgl@antares-labs.eu>2024-05-03 12:55:50 +0000
commitb31457e40a5178320d1aefa588d2d9fc2c5bdfc0 (patch)
tree38d3ad619fb747875dc16427cc1fa29decaa93aa /obj.c
parent5a6f5e0d2e19b72a4264eeb6300a9352901c8a42 (diff)
downloadlibobj-b31457e40a5178320d1aefa588d2d9fc2c5bdfc0.tar.gz
libobj-b31457e40a5178320d1aefa588d2d9fc2c5bdfc0.tar.bz2
libobj-b31457e40a5178320d1aefa588d2d9fc2c5bdfc0.zip
attach material properties to points and lines as well.
Diffstat (limited to 'obj.c')
-rw-r--r--obj.c4
1 files changed, 4 insertions, 0 deletions
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;