mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 15:07:41 +00:00
Added lights and collision to MP3 MREA
This commit is contained in:
@@ -62,8 +62,8 @@ struct DeafBabe : BigDNA
|
||||
Vector<Edge, DNA_COUNT(edgeVertsCount)> edgeVertConnections;
|
||||
Value<atUint32> triangleEdgesCount;
|
||||
Vector<Triangle, DNA_COUNT(triangleEdgesCount / 3)> triangleEdgeConnections;
|
||||
Value<atUint32> triangleEdges2Count;
|
||||
Vector<Triangle, DNA_COUNT(triangleEdges2Count / 3)> triangleEdgeConnections2;
|
||||
Value<atUint32> noClimbEdgeCount;
|
||||
Vector<atInt16, DNA_COUNT(noClimbEdgeCount)> noClimbEdges;
|
||||
Value<atUint32> vertCount;
|
||||
Vector<atVec3f, DNA_COUNT(vertCount)> verts;
|
||||
|
||||
@@ -71,6 +71,19 @@ struct DeafBabe : BigDNA
|
||||
{
|
||||
DNAMP1::DeafBabe::BlenderInit(os);
|
||||
}
|
||||
void insertNoClimb(HECL::BlenderConnection::PyOutStream& os) const
|
||||
{
|
||||
for (atInt16 edgeIdx : noClimbEdges)
|
||||
{
|
||||
if (edgeIdx == -1)
|
||||
continue;
|
||||
const Edge& edge = edgeVertConnections[edgeIdx];
|
||||
os.format("edge = col_bm.edges.get((col_bm.verts[%u], col_bm.verts[%u]))\n"
|
||||
"if edge:\n"
|
||||
" edge.seam = True\n",
|
||||
edge.verts[0], edge.verts[1]);
|
||||
}
|
||||
}
|
||||
void sendToBlender(HECL::BlenderConnection::PyOutStream& os) const
|
||||
{
|
||||
DNAMP1::DeafBabeSendToBlender(os, *this);
|
||||
|
||||
Reference in New Issue
Block a user