diff options
author | cosmic-linden <111533034+cosmic-linden@users.noreply.github.com> | 2024-10-14 13:42:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-14 13:42:03 -0700 |
commit | a2899a3c6cc859dfde4d9692b0dde6e778184dc4 (patch) | |
tree | 73aafb1cc89cdca2d90dffbfd19479168ac55a82 /indra/newview/llvlcomposition.cpp | |
parent | 1983342a0578a32a2a5f148514e708d3be27d13f (diff) | |
parent | 07e33dfac78b170d235069fd035771016d3e0403 (diff) |
Merge pull request #2823 from secondlife/v-1883
secondlife/viewer#1883: Terrain paint client prototype WIP code check-in
Diffstat (limited to 'indra/newview/llvlcomposition.cpp')
-rw-r--r-- | indra/newview/llvlcomposition.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llvlcomposition.cpp b/indra/newview/llvlcomposition.cpp index 077e6e6cb1..ca76d93cd7 100644 --- a/indra/newview/llvlcomposition.cpp +++ b/indra/newview/llvlcomposition.cpp @@ -320,7 +320,11 @@ LLViewerTexture* LLTerrainMaterials::getPaintMap() 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 + mPaintRequestQueue.clear(); + mPaintMapQueue.clear(); } // Boost the texture loading priority |