mirror of
https://github.com/overte-org/overte.git
synced 2025-08-13 11:04:48 +02:00
Bug fix for two piece avatars.
The head was not rendering
This commit is contained in:
parent
99a03bac21
commit
8f03ead74e
1 changed files with 3 additions and 1 deletions
|
@ -1188,10 +1188,12 @@ void MyAvatar::attach(const QString& modelURL, const QString& jointName, const g
|
|||
|
||||
void MyAvatar::renderBody(RenderArgs* renderArgs, ViewFrustum* renderFrustum, bool postLighting, float glowLevel) {
|
||||
|
||||
if (!(_skeletonModel.isRenderable() && _firstPersonSkeletonModel.isRenderable() && getHead()->getFaceModel().isRenderable())) {
|
||||
if (!(_skeletonModel.isRenderable() && getHead()->getFaceModel().isRenderable())) {
|
||||
return; // wait until all models are loaded
|
||||
}
|
||||
|
||||
fixupModelsInScene();
|
||||
|
||||
// Render head so long as the camera isn't inside it
|
||||
if (shouldRenderHead(renderArgs)) {
|
||||
getHead()->render(renderArgs, 1.0f, renderFrustum, postLighting);
|
||||
|
|
Loading…
Reference in a new issue