From 7516871b1644bc751c2d5d0411f46b2490cb6cd3 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Thu, 23 Jan 2014 19:00:30 -0600 Subject: [PATCH] Avoid wasting particles on incredibly small/zero length ribbon segments. --- indra/newview/llviewerpartsource.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/indra/newview/llviewerpartsource.cpp b/indra/newview/llviewerpartsource.cpp index ebda6fd78..cbd0cc31e 100644 --- a/indra/newview/llviewerpartsource.cpp +++ b/indra/newview/llviewerpartsource.cpp @@ -279,6 +279,9 @@ void LLViewerPartSourceScript::update(const F32 dt) continue; } + if (mPartSysData.mPartData.mFlags & LLPartData::LL_PART_RIBBON_MASK && mLastPart && (mLastPart->mPosAgent-mPosAgent).magVec() <= .005f) + continue; //Skip if parent isn't far enough away. + LLViewerPart* part = new LLViewerPart(); part->init(this, mImagep, NULL);