Skip to content

Commit

Permalink
Disabled the playing model when the path is 1 or less in size
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Sep 29, 2023
1 parent 13a6424 commit bb64368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vsg/utils/AnimationPath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ void RecordAnimationPathHandler::apply(KeyPressEvent& keyPress)
{
if (keyPress.keyModified == togglePlaybackKey)
{
if (!playing)
if (!playing && path->locations.size() > 1)
{
info("Starting playback.");

Expand Down

0 comments on commit bb64368

Please sign in to comment.