mblend/__init__.py
def _flatten(m: Motion, offset: float) -> Motion:
    """Recursively simplify older motions to avoid stacking of blends.

    The resulting motion is identical fo `t>=offset`, but may change for
    values less than offset.
    """
    if isinstance(m, PolynomialMotionBlend):
        if m.range[1] < offset:
            return m.m2
        elif m.range[0] < offset:
            return m.blend
        else:
            return _flatten(m.m1, offset)
    else:
        return m
Recursively simplify older motions to avoid stacking of blends.

    The resulting motion is identical fo `t>=offset`, but may change for
    values less than offset.
    
Recursively simplify older motions to avoid stacking of blends.
The resulting motion is identical fo `t>=offset`, but may change for
values less than offset.
Recursively simplify older motions to avoid stacking of blends . The resulting motion is identical fo ` t > = offset ` but may change for values less than offset .
def _flatten(m: Motion, offset: float) -> Motion:
    if isinstance(m, PolynomialMotionBlend):
        if m.range[1] < offset:
            return m.m2
        elif m.range[0] < offset:
            return m.blend
        else:
            return _flatten(m.m1, offset)
    else:
        return m
def _flatten ( m : Motion , offset : float ) -> Motion : if isinstance ( m , PolynomialMotionBlend ) : if m . range [ 1 ] < offset : return m . m2 elif m . range [ 0 ] < offset : return m . blend else : return _flatten ( m . m1 , offset ) else : return m
Recursively simplify older motions to avoid stacking of blends.
Recursively simplify older motions to avoid stacking of blends .
"""Recursively simplify older motions to avoid stacking of blends.

    The resulting motion is identical fo `t>=offset`, but may change for
    values less than offset.
    """
m
Motion
offset
float