summaryrefslogtreecommitdiff
path: root/indra/newview/llreflectionmap.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-09-14 00:28:28 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-09-14 01:37:46 +0300
commit5034c565bf627b4ecaac44376566212f432d97ff (patch)
treeeba38e271b1b68d9477421926fe6e4cf0a31794d /indra/newview/llreflectionmap.cpp
parent5a10b11b0d306334cd80f52f267ca8c525672062 (diff)
SL-18044 (PBR) No-copy textures not applying to objects
Diffstat (limited to 'indra/newview/llreflectionmap.cpp')
-rw-r--r--indra/newview/llreflectionmap.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llreflectionmap.cpp b/indra/newview/llreflectionmap.cpp
index 2a7ab84501..d9dd1e9381 100644
--- a/indra/newview/llreflectionmap.cpp
+++ b/indra/newview/llreflectionmap.cpp
@@ -82,6 +82,11 @@ void LLReflectionMap::autoAdjustOrigin()
// cast a ray towards 8 corners of bounding box
// nudge origin towards center of empty space
+ if (!node)
+ {
+ return;
+ }
+
if (node->isLeaf() || node->getChildCount() > 1 || node->getData().size() > 0)
{ // use center of object bounding box for leaf nodes or nodes with multiple child nodes
mOrigin = bounds[0];