NSRenderableEntity: Save/Restore tracking for 'frame' field.

This commit is contained in:
Marco Cawthorne 2022-01-10 23:46:28 -08:00
parent 31f5fc0119
commit ec9432fe73
Signed by: eukara
GPG key ID: C196CD8BA993248A

View file

@ -598,6 +598,7 @@ void
NSRenderableEntity::Save(float handle)
{
SaveInt(handle, "body", m_iBody);
SaveFloat(handle, "frame", frame);
SaveFloat(handle, "scale", scale);
SaveFloat(handle, "skin", skin);
SaveFloat(handle, "effects", effects);
@ -621,6 +622,9 @@ NSRenderableEntity::Restore(string strKey, string strValue)
case "body":
m_iBody = stoi(strValue);
break;
case "frame":
frame = stof(strValue);
break;
case "scale":
scale = stof(strValue);
break;