summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatersettingsdebug.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2026-07-16 19:22:02 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2026-07-16 19:22:02 +0300
commit72581ab99d2e891821f5266330ecd8a58a277eb7 (patch)
tree528629c8943a400bc1a6186b49cdabdb4b8ed507 /indra/newview/llfloatersettingsdebug.cpp
parentf5e788b1b4ff5fb45f20ee5fa5daad7cca42069f (diff)
parent1577ca1724787fdc0f0317ade3dab8ea3c5df7e7 (diff)
Merge branch 'release/26.3' into marchcat/slua-26.3
# Conflicts: # .github/workflows/build.yaml # autobuild.xml # indra/llcommon/llsys.cpp # indra/llrender/llimagegl.cpp # indra/llrender/llimagegl.h # indra/newview/CMakeLists.txt # indra/newview/featuretable.txt # indra/newview/featuretable_linux.txt # indra/newview/featuretable_mac.txt # indra/newview/llvoavatar.cpp # indra/newview/llvoiceclient.cpp # indra/newview/llvoicevivox.cpp # indra/newview/viewer_manifest.py
Diffstat (limited to 'indra/newview/llfloatersettingsdebug.cpp')
-rw-r--r--indra/newview/llfloatersettingsdebug.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/indra/newview/llfloatersettingsdebug.cpp b/indra/newview/llfloatersettingsdebug.cpp
index 01108b5cfa..92b3c92165 100644
--- a/indra/newview/llfloatersettingsdebug.cpp
+++ b/indra/newview/llfloatersettingsdebug.cpp
@@ -106,6 +106,7 @@ void LLFloaterSettingsDebug::onCommitSettings()
LLVector3 vector;
LLVector3d vectord;
+ LLVector4 vector4;
LLQuaternion quat;
LLRect rect;
LLColor4 col4;
@@ -142,6 +143,13 @@ void LLFloaterSettingsDebug::onCommitSettings()
vectord.mdV[VZ] = mValSpinner3->getValue().asReal();
controlp->set(vectord.getValue());
break;
+ case TYPE_VEC4:
+ vector4.mV[VX] = (F32)mValSpinner1->getValue().asReal();
+ vector4.mV[VY] = (F32)mValSpinner2->getValue().asReal();
+ vector4.mV[VZ] = (F32)mValSpinner3->getValue().asReal();
+ vector4.mV[VW] = (F32)mValSpinner4->getValue().asReal();
+ controlp->set(vector4.getValue());
+ break;
case TYPE_QUAT:
quat.mQ[VX] = mValSpinner1->getValueF32();
quat.mQ[VY] = mValSpinner2->getValueF32();
@@ -352,6 +360,40 @@ void LLFloaterSettingsDebug::updateControl(LLControlVariable* controlp)
}
break;
}
+ case TYPE_VEC4:
+ {
+ LLVector4 v;
+ v.setValue(sd);
+ mValSpinner1->setVisible(true);
+ mValSpinner1->setLabel(std::string("X"));
+ mValSpinner2->setVisible(true);
+ mValSpinner2->setLabel(std::string("Y"));
+ mValSpinner3->setVisible(true);
+ mValSpinner3->setLabel(std::string("Z"));
+ mValSpinner4->setVisible(true);
+ mValSpinner4->setLabel(std::string("W"));
+ if (!mValSpinner1->hasFocus())
+ {
+ mValSpinner1->setPrecision(3);
+ mValSpinner1->setValue(v[VX]);
+ }
+ if (!mValSpinner2->hasFocus())
+ {
+ mValSpinner2->setPrecision(3);
+ mValSpinner2->setValue(v[VY]);
+ }
+ if (!mValSpinner3->hasFocus())
+ {
+ mValSpinner3->setPrecision(3);
+ mValSpinner3->setValue(v[VZ]);
+ }
+ if (!mValSpinner4->hasFocus())
+ {
+ mValSpinner4->setPrecision(3);
+ mValSpinner4->setValue(v[VW]);
+ }
+ break;
+ }
case TYPE_QUAT:
{
LLQuaternion q;