From 1a8323b8f91bb30d64f8b79d77e43e8a9bc0af1d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 10 Mar 2023 00:01:06 +0000 Subject: Mutation persists its own members --- assetFactory/mutation.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'assetFactory/mutation.cpp') 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); +} -- cgit v1.2.3