mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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