diff options
author | rodri <rgl@antares-labs.eu> | 2024-05-03 12:55:50 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-05-03 12:55:50 +0000 |
commit | b31457e40a5178320d1aefa588d2d9fc2c5bdfc0 (patch) | |
tree | 38d3ad619fb747875dc16427cc1fa29decaa93aa | |
parent | 5a6f5e0d2e19b72a4264eeb6300a9352901c8a42 (diff) | |
download | libobj-b31457e40a5178320d1aefa588d2d9fc2c5bdfc0.tar.gz libobj-b31457e40a5178320d1aefa588d2d9fc2c5bdfc0.tar.bz2 libobj-b31457e40a5178320d1aefa588d2d9fc2c5bdfc0.zip |
attach material properties to points and lines as well.
-rw-r--r-- | obj.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |