Skip to content

Commit

Permalink
fix not building without VMC_OSC_SENDER
Browse files Browse the repository at this point in the history
  • Loading branch information
scaledteam authored Oct 20, 2021
1 parent af3c53d commit d19b5ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions heva.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -819,12 +819,14 @@ void Heva::HandleUpdate(StringHash eventType, VariantMap& eventData)
boneLeg_R_3->SetWorldRotation(boneLeg_R_3_Offset);


#ifdef VMC_OSC_SENDER
if (vmc_osc_udp_enabled) {
vmc_osc_sender_data->boneLeg_L = Quaternion(0, 0, angleLegs_L);
vmc_osc_sender_data->boneLeg_R = Quaternion(0, 0, angleLegs_R);
vmc_osc_sender_data->boneLeg_L_2 = Quaternion(0, 0, -angleLegs_L*1.7);
vmc_osc_sender_data->boneLeg_R_2 = Quaternion(0, 0, -angleLegs_R*1.7);
}
#endif
}
else {
boneLeg_L->SetWorldRotation(boneLeg_L_Offset);
Expand Down

0 comments on commit d19b5ab

Please sign in to comment.