mirror of https://github.com/AxioDL/metaforce.git
Remove PATH material dump
This commit is contained in:
parent
96662eb47c
commit
13e6ff31c6
|
@ -44,10 +44,6 @@ void PATH::sendToBlender(hecl::blender::Connection& conn, std::string_view entry
|
||||||
|
|
||||||
os << "bm.verts.ensure_lookup_table()\n";
|
os << "bm.verts.ensure_lookup_table()\n";
|
||||||
|
|
||||||
std::unordered_set<u32> uset;
|
|
||||||
FILE* fp = fopen("/Users/jacko/Desktop/PATHMats.txt", "a");
|
|
||||||
fprintf(fp, "%s\n", conn.getBlendPath().getRelativePathUTF8().data());
|
|
||||||
|
|
||||||
for (const Region& r : regions)
|
for (const Region& r : regions)
|
||||||
{
|
{
|
||||||
os << "tri_verts = []\n";
|
os << "tri_verts = []\n";
|
||||||
|
@ -68,15 +64,8 @@ void PATH::sendToBlender(hecl::blender::Connection& conn, std::string_view entry
|
||||||
"hobj.layers[1] = True\n"
|
"hobj.layers[1] = True\n"
|
||||||
"bpy.context.scene.objects.link(hobj)\n"
|
"bpy.context.scene.objects.link(hobj)\n"
|
||||||
"\n", r.flags, centroid.v[0], centroid.v[1], centroid.v[2] + r.height);
|
"\n", r.flags, centroid.v[0], centroid.v[1], centroid.v[2] + r.height);
|
||||||
|
|
||||||
if (uset.find(r.flags) == uset.end())
|
|
||||||
{
|
|
||||||
fprintf(fp, "%08X\n", r.flags);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose(fp);
|
|
||||||
|
|
||||||
os << "path_mesh = bpy.data.meshes.new('PATH')\n"
|
os << "path_mesh = bpy.data.meshes.new('PATH')\n"
|
||||||
"bm.to_mesh(path_mesh)\n"
|
"bm.to_mesh(path_mesh)\n"
|
||||||
"path_mesh_obj = bpy.data.objects.new(path_mesh.name, path_mesh)\n"
|
"path_mesh_obj = bpy.data.objects.new(path_mesh.name, path_mesh)\n"
|
||||||
|
|
2
hecl
2
hecl
|
@ -1 +1 @@
|
||||||
Subproject commit c6ebab72a5738c616cd18b7fbe59f3f802b6fdd8
|
Subproject commit 8e2c8ed29174aa184d23edd24925062920b25e2b
|
Loading…
Reference in New Issue