Insert 0.0 when pressing return on a track with no keys
This commit is contained in:
parent
121323ca3b
commit
0ecf3880c2
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user