diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-02-22 23:40:46 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-02-22 23:40:46 +0000 |
commit | df2a078c51cee464905c6fb1d1c7c4aa7873f6a1 (patch) | |
tree | 209467479c61ab42bf39510f32fd375027115dcd /assetFactory/use.cpp | |
parent | Fixup MapByMember to work with shared or unique ptr (diff) | |
download | ilt-df2a078c51cee464905c6fb1d1c7c4aa7873f6a1.tar.bz2 ilt-df2a078c51cee464905c6fb1d1c7c4aa7873f6a1.tar.xz ilt-df2a078c51cee464905c6fb1d1c7c4aa7873f6a1.zip |
Implement loading asset, mesh and face definitions
Diffstat (limited to 'assetFactory/use.cpp')
-rw-r--r-- | assetFactory/use.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/assetFactory/use.cpp b/assetFactory/use.cpp index 3b574c3..1f28332 100644 --- a/assetFactory/use.cpp +++ b/assetFactory/use.cpp @@ -6,7 +6,7 @@ Use::createMesh(ModelFactoryMesh & mesh, const Mutation::Matrix & mutation) cons { auto faces = type->createMesh(mesh, mutation * getMatrix()); for (const auto & [name, faceController] : faceControllers) { - faceController.apply(mesh, name, faces); + faceController->apply(mesh, name, faces); } return faces; } @@ -27,5 +27,6 @@ bool Use::persist(Persistence::PersistenceStore & store) { return STORE_TYPE && STORE_HELPER(type, Lookup) && STORE_MEMBER(position) && STORE_MEMBER(scale) - && STORE_MEMBER(rotation); + && STORE_MEMBER(rotation) && STORE_MEMBER(colour) + && STORE_NAME_HELPER("face", faceControllers, Persistence::MapByMember<FaceControllers>); } |