Changes to fix rewindable attributes incorrectly used on read-only archetype data, fix some bad logic in the pre-render blending code, adding a serializer for AZ::Transform, and adding our client.cfg and server.cfg files to .gitignore
Signed-off-by: kberg-amzn <karlberg@amazon.com>
This commit is contained in:
@@ -302,4 +302,22 @@ namespace AzNetworking
|
||||
return serializer.IsValid();
|
||||
}
|
||||
};
|
||||
|
||||
template <>
|
||||
struct SerializeObjectHelper<AZ::Transform>
|
||||
{
|
||||
static bool SerializeObject(ISerializer& serializer, AZ::Transform& value)
|
||||
{
|
||||
AZ::Vector3 translation = value.GetTranslation();
|
||||
AZ::Quaternion rotation = value.GetRotation();
|
||||
float uniformScale = value.GetUniformScale();
|
||||
serializer.Serialize(translation, "Translation");
|
||||
serializer.Serialize(rotation, "Rotation");
|
||||
serializer.Serialize(uniformScale, "Scale");
|
||||
value.SetTranslation(translation);
|
||||
value.SetRotation(rotation);
|
||||
value.SetUniformScale(uniformScale);
|
||||
return serializer.IsValid();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user