summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatersnapshot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloatersnapshot.cpp')
-rw-r--r--indra/newview/llfloatersnapshot.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llfloatersnapshot.cpp b/indra/newview/llfloatersnapshot.cpp
index d45d9c052f..34dbce67c2 100644
--- a/indra/newview/llfloatersnapshot.cpp
+++ b/indra/newview/llfloatersnapshot.cpp
@@ -508,7 +508,8 @@ void LLSnapshotLivePreview::draw()
gGL.end();
}
- if (mShineAnimTimer.getElapsedTimeF32() > SHINE_TIME)
+ // if we're at the end of the animation, stop
+ if (shine_interp >= 1.f)
{
mShineAnimTimer.stop();
}