summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2025-03-20 15:15:42 +0200
committerGitHub <noreply@github.com>2025-03-20 15:15:42 +0200
commitdee3257ffd9735f0cdaec643743b9dd8cd1920b3 (patch)
tree368bd98fa3f813e3202d89ba7a9a9e48b7371d09 /indra
parentb6bf32e00e25de773b6403b716c655f64b6092c9 (diff)
#1964 fix for reflection probe doesn't update position when the linkset is moved by the script
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewerobject.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp
index 030dfeaa6f..3d88cc5f39 100644
--- a/indra/newview/llviewerobject.cpp
+++ b/indra/newview/llviewerobject.cpp
@@ -4820,6 +4820,18 @@ void LLViewerObject::setPositionParent(const LLVector3 &pos_parent, bool damped)
else
{
setPositionRegion(pos_parent, damped);
+
+ // #1964 mark reflection probe in the linkset to update position after moving via script
+ for (LLViewerObject* child : mChildList)
+ {
+ if (child && child->isReflectionProbe())
+ {
+ if (LLDrawable* drawablep = child->mDrawable)
+ {
+ gPipeline.markMoved(drawablep);
+ }
+ }
+ }
}
}