mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 19:12:28 +02:00
make sure HeadData is present before processing recording frames
This commit is contained in:
parent
29b966ee04
commit
6ed4295b8b
1 changed files with 4 additions and 0 deletions
|
@ -336,6 +336,10 @@ void Agent::executeScript() {
|
|||
// call model URL setters with empty URLs so our avatar, if user, will have the default models
|
||||
scriptedAvatar->setSkeletonModelURL(QUrl());
|
||||
|
||||
// force lazy initialization of the head data for the scripted avatar
|
||||
// since it is referenced below by computeLoudness and getAudioLoudness
|
||||
scriptedAvatar->getHeadOrientation();
|
||||
|
||||
// give this AvatarData object to the script engine
|
||||
_scriptEngine->registerGlobalObject("Avatar", scriptedAvatar.data());
|
||||
|
||||
|
|
Loading…
Reference in a new issue