mirror of https://github.com/AxioDL/metaforce.git
Disable DCLN OBB dumping by default
This commit is contained in:
parent
5149128b60
commit
5e88b99769
|
@ -8,6 +8,8 @@
|
||||||
#include "DNAMP1.hpp"
|
#include "DNAMP1.hpp"
|
||||||
#include "DeafBabe.hpp"
|
#include "DeafBabe.hpp"
|
||||||
|
|
||||||
|
#define DCLN_DUMP_OBB 0
|
||||||
|
|
||||||
namespace DataSpec
|
namespace DataSpec
|
||||||
{
|
{
|
||||||
namespace DNAMP1
|
namespace DNAMP1
|
||||||
|
@ -127,6 +129,7 @@ struct DCLN : BigDNA
|
||||||
return (ret + 3) & ~3;
|
return (ret + 3) & ~3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if DCLN_DUMP_OBB
|
||||||
void sendToBlender(hecl::BlenderConnection::PyOutStream& os) const
|
void sendToBlender(hecl::BlenderConnection::PyOutStream& os) const
|
||||||
{
|
{
|
||||||
os.format("obj = bpy.data.objects.new('%s', None)\n"
|
os.format("obj = bpy.data.objects.new('%s', None)\n"
|
||||||
|
@ -150,6 +153,7 @@ struct DCLN : BigDNA
|
||||||
right->sendToBlender(os);
|
right->sendToBlender(os);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
Node root;
|
Node root;
|
||||||
size_t getMemoryUsage()
|
size_t getMemoryUsage()
|
||||||
|
@ -171,7 +175,6 @@ struct DCLN : BigDNA
|
||||||
os.format("import bpy\n"
|
os.format("import bpy\n"
|
||||||
"import bmesh\n"
|
"import bmesh\n"
|
||||||
"from mathutils import Vector, Matrix\n"
|
"from mathutils import Vector, Matrix\n"
|
||||||
|
|
||||||
"\n"
|
"\n"
|
||||||
"bpy.context.scene.name = '%s'\n"
|
"bpy.context.scene.name = '%s'\n"
|
||||||
"# Clear Scene\n"
|
"# Clear Scene\n"
|
||||||
|
@ -186,7 +189,9 @@ struct DCLN : BigDNA
|
||||||
for (const Collision& col : collision)
|
for (const Collision& col : collision)
|
||||||
{
|
{
|
||||||
DeafBabeSendToBlender(os, col, true, idx++);
|
DeafBabeSendToBlender(os, col, true, idx++);
|
||||||
|
#if DCLN_DUMP_OBB
|
||||||
col.root.sendToBlender(os);
|
col.root.sendToBlender(os);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
os.centerView();
|
os.centerView();
|
||||||
os.close();
|
os.close();
|
||||||
|
|
Loading…
Reference in New Issue