mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 01:13:32 +02:00
Silencio!
This commit is contained in:
parent
6a3b2c7ad0
commit
650e9c4267
1 changed files with 4 additions and 2 deletions
|
@ -22,7 +22,7 @@ Faceshift::Faceshift() : _enabled(false), _eyeGazeLeftPitch(0.0f), _eyeGazeLeftY
|
|||
}
|
||||
|
||||
void Faceshift::setEnabled(bool enabled) {
|
||||
if (_enabled = enabled) {
|
||||
if ((_enabled = enabled)) {
|
||||
connectSocket();
|
||||
|
||||
} else {
|
||||
|
@ -61,7 +61,7 @@ void Faceshift::readFromSocket() {
|
|||
QByteArray buffer = _socket.readAll();
|
||||
_stream.received(buffer.size(), buffer.constData());
|
||||
fsMsgPtr msg;
|
||||
for (fsMsgPtr msg; msg = _stream.get_message(); ) {
|
||||
for (fsMsgPtr msg; (msg = _stream.get_message()); ) {
|
||||
switch (msg->id()) {
|
||||
case fsMsg::MSG_OUT_TRACKING_STATE: {
|
||||
const fsTrackingData& data = static_cast<fsMsgTrackingState*>(msg.get())->tracking_data();
|
||||
|
@ -95,6 +95,8 @@ void Faceshift::readFromSocket() {
|
|||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue