Skip to content

Commit

Permalink
Merge pull request #49 from OrangeStripyDog/pbr-texture-refresh
Browse files Browse the repository at this point in the history
#43: Add support for refreshing PBR textures on objects
  • Loading branch information
RyeMutt authored Jun 25, 2024
2 parents d3b9714 + 50c2014 commit 5ecc5e4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions indra/newview/alviewermenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,15 @@ namespace
LLViewerTexture* spec_img = node->getObject()->getTESpecularMap(i);
faces_per_tex[spec_img->getID()].push_back(i);
}

LLPointer<LLGLTFMaterial> mat = node->getObject()->getTE(i)->getGLTFRenderMaterial();
if (mat.notNull())
{
for (U32 j = 0; j < LLGLTFMaterial::GLTF_TEXTURE_INFO_COUNT; ++j)
{
faces_per_tex[mat->mTextureId[j]].push_back(i);
}
}
}

for (auto const& it : faces_per_tex)
Expand Down

0 comments on commit 5ecc5e4

Please sign in to comment.