summaryrefslogtreecommitdiff
path: root/indra/llmath/v3color.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llmath/v3color.cpp')
-rw-r--r--indra/llmath/v3color.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/indra/llmath/v3color.cpp b/indra/llmath/v3color.cpp
index e76607a91f..b4cd410076 100644
--- a/indra/llmath/v3color.cpp
+++ b/indra/llmath/v3color.cpp
@@ -56,9 +56,7 @@ LLColor3::LLColor3(const LLVector4 &a)
LLColor3::LLColor3(const LLSD &sd)
{
- mV[0] = (F32) sd[0].asReal();
- mV[1] = (F32) sd[1].asReal();
- mV[2] = (F32) sd[2].asReal();
+ setValue(sd);
}
const LLColor3& LLColor3::operator=(const LLColor4 &a)