From 69b4f1a6adc821f33ab467d6fd1b7f635cb55347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konsta=20=27sooda=27=20H=C3=B6ltt=C3=A4?= Date: Sun, 23 Jun 2013 13:35:09 +0300 Subject: [PATCH] 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. --- ogl_editor/src/Editor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ogl_editor/src/Editor.c b/ogl_editor/src/Editor.c index d4bf25d..3893c29 100644 --- a/ogl_editor/src/Editor.c +++ b/ogl_editor/src/Editor.c @@ -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);