From 6af02192731b80c558a89a25f3cbf6916c2cbb72 Mon Sep 17 00:00:00 2001 From: Adam Moss Date: Thu, 8 Oct 2009 16:44:44 +0000 Subject: DEV-41080 fix and upgrade v4color_test.cpp to a real unit test. --- indra/llmath/v3color.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'indra/llmath/v3color.cpp') 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) -- cgit v1.2.3