Function doesKeyframeExists

Synopsis

#include <Source/Falcor/Scene/Animation/Animation.h>

bool doesKeyframeExists(double time) const

Description

Check if a keyframe exists at the specified time.

Parameters

[ in ] time - Time of the keyframe.

Returns
Returns true if keyframe exists.

Source

Lines 307-314 in Source/Falcor/Scene/Animation/Animation.cpp. Line 131 in Source/Falcor/Scene/Animation/Animation.h.

bool Animation::doesKeyframeExists(double time) const
{
    for (const auto& k : mKeyframes)
    {
        if (k.time == time) return true;
    }
    return false;
}





Add Discussion as Guest

Log in