2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 17:07:41 +00:00

ported in GX -> Blender material translator

This commit is contained in:
Jack Andersen
2015-08-02 13:30:39 -10:00
parent a3db545b01
commit abfbec1563
7 changed files with 845 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
#include <cstddef>
#include "CMDL.hpp"
#include "DNAMP1.hpp"
#include "CMDLMaterials.hpp"
namespace Retro
{
@@ -28,8 +29,10 @@ bool CMDL::ReadToBlender(HECL::BlenderConnection& conn, Athena::io::IStreamReade
/* Open Py Stream */
HECL::BlenderConnection::PyOutStream os = conn.beginPythonOut();
os << "import bmesh\n";
os << "bm = bmesh.new()\n";
os << "import bmesh\n"
"import bpy;\n";
"bm = bmesh.new()\n";
MaterialSet::RegisterMaterialProps(os);
for (size_t s=0 ; s<head.secCount ; ++s)
{