Update texturelist/volumetexture management with changes from upstream. Note: TEX_LIST_SCALE not utilized in singu... yet.

This commit is contained in:
Shyotl
2019-10-19 04:05:34 -05:00
parent 835083a741
commit 4043130f75
17 changed files with 379 additions and 187 deletions

View File

@@ -2186,9 +2186,9 @@ public:
{
LLAppViewer::getTextureCache()->removeFromCache(id);
img->forceRefetch();
for (S32 i = 0; i < img->getNumVolumes(); ++i)
for (S32 i = 0; i < img->getNumVolumes(LLRender::SCULPT_TEX); ++i)
{
LLVOVolume* volume = (*(img->getVolumeList()))[i];
LLVOVolume* volume = (*(img->getVolumeList(LLRender::SCULPT_TEX)))[i];
if (volume && volume->isSculpted())
{
const LLSculptParams *sculpt_params = volume->getSculptParams();