2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-12-17 16:07:48 +00:00

feat: dump material techniques for T6

This commit is contained in:
Jan Laupetin
2025-11-13 22:44:09 +00:00
parent 18ccbb9180
commit 9b526adaed
8 changed files with 221 additions and 36 deletions

View File

@@ -1,7 +1,6 @@
#include "CommonTechsetDumper.h"
#include "Dumping/AbstractTextDumper.h"
#include "Game/IW3/Material/MaterialConstantZoneStateIW3.h"
#include "Techset/TechsetCommon.h"
#include <cassert>
@@ -36,8 +35,7 @@ namespace
dumpedTechniques[techniqueIndex] = true;
WriteTechniqueType(techniqueIndex);
for (auto nextTechniqueIndex = techniqueIndex + 1; nextTechniqueIndex < std::extent_v<decltype(IW3::MaterialTechniqueSet::techniques)>;
nextTechniqueIndex++)
for (auto nextTechniqueIndex = techniqueIndex + 1; nextTechniqueIndex < techniqueCount; nextTechniqueIndex++)
{
if (techset.m_technique_names[nextTechniqueIndex] != technique)
continue;