ogl_editor: select first track initially

When getting the tracks from the demo, select the first one when it
comes, otherwise we end up focused in the editor but nothing selected.
This commit is contained in:
Konsta 'sooda' Hölttä 2013-06-23 13:35:09 +03:00
parent 5248597c58
commit 69b4f1a6ad

View File

@ -772,6 +772,9 @@ static int processCommands()
// find track
serverIndex = TrackData_createGetTrack(&s_editorData.trackData, trackName);
// if it's the first one we get, select it too
if (serverIndex == 0)
setActiveTrack(0);
// setup remap and send the keyframes to the demo
RemoteConnection_mapTrackName(trackName);