diff options
author | Cosmic Linden <cosmic@lindenlab.com> | 2024-08-08 11:04:35 -0700 |
---|---|---|
committer | Cosmic Linden <cosmic@lindenlab.com> | 2024-10-11 10:39:21 -0700 |
commit | 4811e4263216a2f282cfe146e247578b50005e42 (patch) | |
tree | a39534c2facd1530ab36440023ac289aa54ee0b0 /indra/newview/llvlcomposition.cpp | |
parent | e62b7d391c748244c074f935b94a0588c2043683 (diff) |
(WIP) Local paintmap modification test
Diffstat (limited to 'indra/newview/llvlcomposition.cpp')
-rw-r--r-- | indra/newview/llvlcomposition.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llvlcomposition.cpp b/indra/newview/llvlcomposition.cpp index 077e6e6cb1..d87658ba89 100644 --- a/indra/newview/llvlcomposition.cpp +++ b/indra/newview/llvlcomposition.cpp @@ -317,10 +317,18 @@ LLViewerTexture* LLTerrainMaterials::getPaintMap() return mPaintMap.get(); } +LLTerrainPaintQueue& LLTerrainMaterials::getPaintQueue() +{ + return mPaintQueue; +} + void LLTerrainMaterials::setPaintMap(LLViewerTexture* paint_map) { llassert(!paint_map || mPaintType == TERRAIN_PAINT_TYPE_PBR_PAINTMAP); + const bool changed = paint_map != mPaintMap; mPaintMap = paint_map; + // The paint map has changed, so edits are no longer valid + mPaintQueue.clear(); } // Boost the texture loading priority |