mirror of https://github.com/AxioDL/metaforce.git
parent
79cf5f12ca
commit
de8ec7e4f0
|
@ -108,7 +108,7 @@ bool ReadMAPAToBlender(HECL::BlenderConnection& conn,
|
||||||
if (GX::Primitive(prim.type) == GX::TRIANGLESTRIP)
|
if (GX::Primitive(prim.type) == GX::TRIANGLESTRIP)
|
||||||
{
|
{
|
||||||
atUint8 flip = 0;
|
atUint8 flip = 0;
|
||||||
for (int v=0 ; v<prim.indexCount-2 ; ++v)
|
for (size_t v=0 ; v<prim.indexCount-2 ; ++v)
|
||||||
{
|
{
|
||||||
if (flip)
|
if (flip)
|
||||||
{
|
{
|
||||||
|
@ -138,7 +138,7 @@ bool ReadMAPAToBlender(HECL::BlenderConnection& conn,
|
||||||
}
|
}
|
||||||
else if (GX::Primitive(prim.type) == GX::TRIANGLES)
|
else if (GX::Primitive(prim.type) == GX::TRIANGLES)
|
||||||
{
|
{
|
||||||
for (int v=0 ; v<prim.indexCount ; v+=3)
|
for (size_t v=0 ; v<prim.indexCount ; v+=3)
|
||||||
{
|
{
|
||||||
os.format("add_triangle(bm, (%u,%u,%u))\n",
|
os.format("add_triangle(bm, (%u,%u,%u))\n",
|
||||||
primVerts[0],
|
primVerts[0],
|
||||||
|
@ -159,7 +159,7 @@ bool ReadMAPAToBlender(HECL::BlenderConnection& conn,
|
||||||
for (const typename MAPA::Surface::Border& border : surf.borders)
|
for (const typename MAPA::Surface::Border& border : surf.borders)
|
||||||
{
|
{
|
||||||
auto iit = border.indices.cbegin();
|
auto iit = border.indices.cbegin();
|
||||||
for (int i=0 ; i<border.indexCount-1 ; ++i)
|
for (size_t i=0 ; i<border.indexCount-1 ; ++i)
|
||||||
{
|
{
|
||||||
os.format("add_border(bm, (%u,%u))\n",
|
os.format("add_border(bm, (%u,%u))\n",
|
||||||
*iit, *(iit+1));
|
*iit, *(iit+1));
|
||||||
|
|
2
hecl
2
hecl
|
@ -1 +1 @@
|
||||||
Subproject commit d4460a3970f70e56248464533448169f81301ce3
|
Subproject commit cfe192145c409d479770ca7d2f208424c4baf8a3
|
Loading…
Reference in New Issue