File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -32,18 +32,17 @@ public VRChatOscClient()
32
32
33
33
private void sendData ( OscData data )
34
34
{
35
- var blockSend = false ;
35
+ data . PreValidate ( ) ;
36
36
37
- if ( valuesCache . TryGetValue ( data . Address , out var previousValue ) )
37
+ if ( data . Address . StartsWith ( VRChatOscConstants . ADDRESS_AVATAR_PARAMETERS_PREFIX ) )
38
38
{
39
- if ( data . Values . SequenceEqual ( previousValue ) ) blockSend = true ;
39
+ if ( valuesCache . TryGetValue ( data . Address , out var previousValue ) )
40
+ {
41
+ if ( data . Values . SequenceEqual ( previousValue ) ) return ;
42
+ }
40
43
}
41
44
42
45
valuesCache [ data . Address ] = data . Values ;
43
-
44
- if ( blockSend ) return ;
45
-
46
- data . PreValidate ( ) ;
47
46
SendByteData ( data . Encode ( ) ) ;
48
47
OnParameterSent ? . Invoke ( new VRChatOscData ( data ) ) ;
49
48
}
You can’t perform that action at this time.
0 commit comments