summaryrefslogtreecommitdiff
path: root/assetFactory/mutation.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-03-10 00:01:06 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-03-10 00:01:06 +0000
commit1a8323b8f91bb30d64f8b79d77e43e8a9bc0af1d (patch)
treeb24de0c366e79946a20dd9b8d802324a266c3347 /assetFactory/mutation.cpp
parentMerge branch 'model-factory-fixup' (diff)
downloadilt-1a8323b8f91bb30d64f8b79d77e43e8a9bc0af1d.tar.bz2
ilt-1a8323b8f91bb30d64f8b79d77e43e8a9bc0af1d.tar.xz
ilt-1a8323b8f91bb30d64f8b79d77e43e8a9bc0af1d.zip
Mutation persists its own members
Diffstat (limited to 'assetFactory/mutation.cpp')
-rw-r--r--assetFactory/mutation.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/assetFactory/mutation.cpp b/assetFactory/mutation.cpp
index 9722dc3..9a6a988 100644
--- a/assetFactory/mutation.cpp
+++ b/assetFactory/mutation.cpp
@@ -27,3 +27,8 @@ Mutation::relativeLevelOfDetail() const
{
return std::max({scale.x, scale.y, scale.z});
}
+bool
+Mutation::persist(Persistence::PersistenceStore & store)
+{
+ return STORE_MEMBER(scale) && STORE_MEMBER(position) && STORE_MEMBER(rotation);
+}