Insert 0.0 when pressing return on a track with no keys

This commit is contained in:
Daniel Collin 2013-01-12 12:09:46 +01:00
parent 121323ca3b
commit 0ecf3880c2

View File

@ -1087,7 +1087,15 @@ static void onEnterCurrentValue()
track = tracks[activeTrack]; track = tracks[activeTrack];
if (!track->keys) if (!track->keys)
{
key.row = rowPos;
key.value = 0.0f;
key.type = 0;
Commands_addOrUpdateKey(activeTrack, &key);
updateNeedsSaving();
return; return;
}
idx = sync_find_key(track, rowPos); idx = sync_find_key(track, rowPos);
if (idx < 0) if (idx < 0)