mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-11-10 18:01:59 +00:00
feat: add possibility to only include structs in zcg for certain variants
This commit is contained in:
12 files changed
+124
-4
No files matched your search
@@ -12,6 +12,7 @@
|
||||
#include <filesystem>
|
||||
#include <format>
|
||||
#include <fstream>
|
||||
#include <variant>
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
@@ -195,6 +196,9 @@ bool CodeGenerator::GenerateCode(const IDataRepository* repository)
|
||||
{
|
||||
for (auto* asset : assets)
|
||||
{
|
||||
if (!asset->IsIncludedForVariant(variant->m_index))
|
||||
continue;
|
||||
|
||||
auto context = std::make_unique<PerAssetRenderingContext>(repository, asset, variant);
|
||||
const auto result = GenerateCodeOncePerAsset(*context, foundTemplate->second.get());
|
||||
LogDirtyCheckResult(
|
||||
|
||||
Reference in new issue
Block a user