mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:07:58 +02:00
Fix flickering
This commit is contained in:
parent
5a5aa2f5b9
commit
b3d127c953
3 changed files with 13 additions and 12 deletions
|
@ -184,7 +184,6 @@ MyAvatar::MyAvatar(QThread* thread) :
|
||||||
if (recordingInterface->getPlayFromCurrentLocation()) {
|
if (recordingInterface->getPlayFromCurrentLocation()) {
|
||||||
setRecordingBasis();
|
setRecordingBasis();
|
||||||
}
|
}
|
||||||
createRecordingIDs();
|
|
||||||
_previousCollisionGroup = _characterController.computeCollisionGroup();
|
_previousCollisionGroup = _characterController.computeCollisionGroup();
|
||||||
_characterController.setCollisionless(true);
|
_characterController.setCollisionless(true);
|
||||||
} else {
|
} else {
|
||||||
|
@ -203,6 +202,7 @@ MyAvatar::MyAvatar(QThread* thread) :
|
||||||
|
|
||||||
connect(recorder.data(), &Recorder::recordingStateChanged, [=] {
|
connect(recorder.data(), &Recorder::recordingStateChanged, [=] {
|
||||||
if (recorder->isRecording()) {
|
if (recorder->isRecording()) {
|
||||||
|
createRecordingIDs();
|
||||||
setRecordingBasis();
|
setRecordingBasis();
|
||||||
} else {
|
} else {
|
||||||
clearRecordingBasis();
|
clearRecordingBasis();
|
||||||
|
|
|
@ -236,8 +236,6 @@ void Avatar::updateAvatarEntities() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
createRecordingIDs();
|
|
||||||
|
|
||||||
if (getID().isNull() ||
|
if (getID().isNull() ||
|
||||||
getID() == AVATAR_SELF_ID ||
|
getID() == AVATAR_SELF_ID ||
|
||||||
DependencyManager::get<NodeList>()->getSessionUUID() == QUuid()) {
|
DependencyManager::get<NodeList>()->getSessionUUID() == QUuid()) {
|
||||||
|
@ -368,6 +366,9 @@ void Avatar::updateAvatarEntities() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (avatarEntities.size() != _avatarEntityForRecording.size()) {
|
||||||
|
createRecordingIDs();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
setAvatarEntityDataChanged(false);
|
setAvatarEntityDataChanged(false);
|
||||||
|
|
Loading…
Reference in a new issue