vgvm
commited on
Commit
•
a8c9a4d
1
Parent(s):
5bc01b9
change the material name
Browse files- meshin-around.sh +2 -2
meshin-around.sh
CHANGED
@@ -17,14 +17,14 @@ _meshin_around_main() {
|
|
17 |
echo "${mash} already exists"
|
18 |
else
|
19 |
echo "creating ${mash} for ${mesh}"
|
20 |
-
sed "s,^f.*,,;s,#f,f,;s,.*mtllib.*,mtllib ${mtl}," ${mesh} > ${mash} || exit ${?}
|
21 |
fi
|
22 |
|
23 |
if [ -f "${mtl}" ] ; then
|
24 |
echo "${mtl} already exists"
|
25 |
else
|
26 |
echo "creating ${mtl} for ${mash}"
|
27 |
-
echo -e "newmtl
|
28 |
fi
|
29 |
|
30 |
if [ -f "${png}" ] ; then
|
|
|
17 |
echo "${mash} already exists"
|
18 |
else
|
19 |
echo "creating ${mash} for ${mesh}"
|
20 |
+
sed "s,^f.*,,;s,#f,f,;s,.*mtllib.*,mtllib ${mtl},;s,^usemtl .*,usemtl ${name}Material," ${mesh} > ${mash} || exit ${?}
|
21 |
fi
|
22 |
|
23 |
if [ -f "${mtl}" ] ; then
|
24 |
echo "${mtl} already exists"
|
25 |
else
|
26 |
echo "creating ${mtl} for ${mash}"
|
27 |
+
echo -e "newmtl ${name}Material\nmap_Kd ${png}" > ${mtl} || exit ${?}
|
28 |
fi
|
29 |
|
30 |
if [ -f "${png}" ] ; then
|