mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-12 03:04:51 -04:00
Fix bug where xform fields that were not specified for motion interpolation were still getting interpolated.
Carry logic from this fix to writing Xform Xmls as well. Motion was not supported on some Xform fields as it was originally copied from flam3. Allow it on all but xaos now. Fix clamping range for m_ColorSpeed at the end of ApplyMotion() to match the values we accept elsewhere.
This commit is contained in:
@ -157,6 +157,21 @@ bool Affine2D<T>::IsZero() const
|
||||
(IsClose<T>(F(), 0));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determine whether this affine transform was deliberately set to all empty values.
|
||||
/// </summary>
|
||||
/// <returns>True if all 6 elements equal zero, else false.</returns>
|
||||
template <typename T>
|
||||
bool Affine2D<T>::IsEmpty() const
|
||||
{
|
||||
return (IsClose<T>(A(), EMPTYFIELD)) &&
|
||||
(IsClose<T>(B(), EMPTYFIELD)) &&
|
||||
(IsClose<T>(C(), EMPTYFIELD)) &&
|
||||
(IsClose<T>(D(), EMPTYFIELD)) &&
|
||||
(IsClose<T>(E(), EMPTYFIELD)) &&
|
||||
(IsClose<T>(F(), EMPTYFIELD));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Rotate this affine transform around its origin by the specified angle in degrees.
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user