From 6340d2eb3aedb42153fc63a430382f40abed87c1 Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Wed, 23 Oct 2019 13:11:12 +0300 Subject: SL-11937 FIXED [EEP] Grass doesn't appear after changing the 'Render Settings' from low to any other value --- indra/newview/llvograss.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/indra/newview/llvograss.cpp b/indra/newview/llvograss.cpp index f4a5d60f7c..97543a99f6 100644 --- a/indra/newview/llvograss.cpp +++ b/indra/newview/llvograss.cpp @@ -288,7 +288,12 @@ void LLVOGrass::idleUpdate(LLAgent &agent, const F64 &time) // So drones work. return; } - + if (!LLVOTree::isTreeRenderingStopped() && !mNumBlades)//restart grass rendering + { + mNumBlades = GRASS_MAX_BLADES; + gPipeline.markRebuild(mDrawable, LLDrawable::REBUILD_ALL, TRUE); + return; + } if (mPatch && (mLastPatchUpdateTime != mPatch->getLastUpdateTime())) { gPipeline.markRebuild(mDrawable, LLDrawable::REBUILD_VOLUME, TRUE); -- cgit v1.2.3