mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 10:09:05 +02:00
Merge pull request #15213 from MiladNazeri/Fix/avatarDominantHandChanged
Updated engine code to not emit if dominant hand isn't actually changed
This commit is contained in:
commit
0a28090aa4
1 changed files with 5 additions and 2 deletions
|
@ -324,8 +324,11 @@ QString MyAvatar::getDominantHand() const {
|
||||||
|
|
||||||
void MyAvatar::setDominantHand(const QString& hand) {
|
void MyAvatar::setDominantHand(const QString& hand) {
|
||||||
if (hand == DOMINANT_LEFT_HAND || hand == DOMINANT_RIGHT_HAND) {
|
if (hand == DOMINANT_LEFT_HAND || hand == DOMINANT_RIGHT_HAND) {
|
||||||
_dominantHand.set(hand);
|
bool changed = (hand != _dominantHand.get());
|
||||||
emit dominantHandChanged(hand);
|
if (changed) {
|
||||||
|
_dominantHand.set(hand);
|
||||||
|
emit dominantHandChanged(hand);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue