diff --git a/DataSpec/DNACommon/CMDL.hpp b/DataSpec/DNACommon/CMDL.hpp index c042f9bc6..cc14e6c92 100644 --- a/DataSpec/DNACommon/CMDL.hpp +++ b/DataSpec/DNACommon/CMDL.hpp @@ -776,7 +776,7 @@ bool ReadCMDLToBlender(HECL::BlenderConnection& conn, "obj = bpy.data.objects.new(mesh.name, mesh)\n" "obj.show_transparent = True\n" "bpy.context.scene.objects.link(obj)\n" - "mesh.cmdl_material_count = %u\n" + "mesh.hecl_material_count = %u\n" "for material in materials:\n" " mesh.materials.append(material)\n" "\n" diff --git a/DataSpec/DNAMP1/CMDLMaterials.cpp b/DataSpec/DNAMP1/CMDLMaterials.cpp index 27c63db8e..eaa3f69d0 100644 --- a/DataSpec/DNAMP1/CMDLMaterials.cpp +++ b/DataSpec/DNAMP1/CMDLMaterials.cpp @@ -19,7 +19,6 @@ void MaterialSet::RegisterMaterialProps(Stream& out) "bpy.types.Material.retro_samus_reflection_indirect = bpy.props.BoolProperty(name='Retro: Samus Reflection Indirect Texture')\n" "bpy.types.Material.retro_lightmapped = bpy.props.BoolProperty(name='Retro: Lightmapped')\n" "bpy.types.Material.retro_lightmap = bpy.props.StringProperty(name='Retro: Lightmap')\n" - "bpy.types.Mesh.cmdl_material_count = bpy.props.IntProperty(name='CMDL: Material Count')\n" "\n"; } diff --git a/DataSpec/DNAMP3/CMDLMaterials.hpp b/DataSpec/DNAMP3/CMDLMaterials.hpp index 8dde20b70..24913bebe 100644 --- a/DataSpec/DNAMP3/CMDLMaterials.hpp +++ b/DataSpec/DNAMP3/CMDLMaterials.hpp @@ -39,7 +39,7 @@ struct MaterialSet : BigDNA } flags; Value groupIdx; Value unk1; - DNAMP1::MaterialSet::Material::VAFlags vaFlags; + VAFlags vaFlags; Value unk2; Value unk3; Value unk4; diff --git a/DataSpec/SpecMP1.cpp b/DataSpec/SpecMP1.cpp index fbdbea88d..bdddad753 100644 --- a/DataSpec/SpecMP1.cpp +++ b/DataSpec/SpecMP1.cpp @@ -34,8 +34,7 @@ struct SpecMP1 : SpecBase m_cookPath(project.getProjectCookedPath(SpecEntMP1), _S("MP1")), m_pakRouter(*this, m_workPath, m_cookPath) {} - void buildPaks(HECL::Database::Project& project, - NOD::DiscBase::IPartition::Node& root, + void buildPaks(NOD::DiscBase::IPartition::Node& root, const std::vector& args, ExtractReport& rep) { @@ -91,7 +90,7 @@ struct SpecMP1 : SpecBase } if (good) - m_paks.emplace_back(project, child); + m_paks.emplace_back(m_project, child); } } @@ -139,7 +138,7 @@ struct SpecMP1 : SpecBase /* Iterate PAKs and build level options */ NOD::DiscBase::IPartition::Node& root = partition->getFSTRoot(); - buildPaks(m_project, root, args, rep); + buildPaks(root, args, rep); return true; } @@ -200,7 +199,7 @@ struct SpecMP1 : SpecBase NOD::DiscBase::IPartition::Node::DirectoryIterator mp1It = root.find("MP1"); if (mp1It == root.end()) return false; - buildPaks(m_project, *mp1It, mp1args, rep); + buildPaks(*mp1It, mp1args, rep); return true; }