Adds logic to correctly write out a shape's materials as fields to the asset taml file so they can register as dependencies with the assetdatabase

This commit is contained in:
JeffR 2026-05-31 11:14:54 -05:00
parent b44158cb89
commit de26f519f9
2 changed files with 27 additions and 0 deletions

View file

@ -158,6 +158,7 @@ protected:
/// Taml callbacks.
void onTamlPreWrite(void) override;
void onTamlPostWrite(void) override;
void onTamlCustomWrite(TamlCustomNodes& customNodes) override;
protected:
static bool setShapeFile(void* obj, StringTableEntry index, StringTableEntry data) { static_cast<ShapeAsset*>(obj)->setShapeFile(data); return false; }