File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
VRCFaceTracking.Core/OSC/Query Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ public class OscQueryAvatarInfo : IAvatarInfo
12
12
13
13
public OscQueryAvatarInfo ( OscQueryNode rootNode )
14
14
{
15
- Name = "Half-baked OSCQuery impl" ;
16
- if ( ! rootNode . Contents . ContainsKey ( "change" ) )
15
+ if ( ! rootNode . Contents . ContainsKey ( "parameters" ) )
17
16
{
18
- // We likely queried while an avatar was still loading. Return without parsing.
19
17
return ;
20
18
}
21
- Id = rootNode . Contents [ "change" ] . Value [ 0 ] as string ;
19
+
20
+ Name = "Unknown" ;
21
+ Id = rootNode . Contents . TryGetValue ( "change" , out var change ) ? change . Value [ 0 ] as string : "Unknown" ;
22
22
23
23
//TODO: Figure out a way to reconstruct the traditional address pattern instead of the whole thing.
24
24
IEnumerable < IParameterDefinition > ConstructParameterArray ( Dictionary < string , OscQueryNode > entries )
You can’t perform that action at this time.
0 commit comments