diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lldebugmessagebox.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/linden/indra/newview/lldebugmessagebox.cpp b/linden/indra/newview/lldebugmessagebox.cpp index e238800..948b96a 100644 --- a/linden/indra/newview/lldebugmessagebox.cpp +++ b/linden/indra/newview/lldebugmessagebox.cpp | |||
@@ -77,6 +77,9 @@ LLDebugVarMessageBox::LLDebugVarMessageBox(const std::string& title, EDebugVarTy | |||
77 | addChild(mSlider2); | 77 | addChild(mSlider2); |
78 | addChild(mSlider3); | 78 | addChild(mSlider3); |
79 | break; | 79 | break; |
80 | default: | ||
81 | llwarns << "Unhandled var type " << var_type << llendl; | ||
82 | break; | ||
80 | } | 83 | } |
81 | 84 | ||
82 | mAnimateButton = new LLButton("Animate", LLRect(20, 45, 180, 25), "", onAnimateClicked, this); | 85 | mAnimateButton = new LLButton("Animate", LLRect(20, 45, 180, 25), "", onAnimateClicked, this); |
@@ -185,12 +188,17 @@ void LLDebugVarMessageBox::slider_changed(LLUICtrl* ctrl, void* user_data) | |||
185 | *((S32*)msg_box->mVarData) = (S32)msg_box->mSlider1->getValue().asInteger(); | 188 | *((S32*)msg_box->mVarData) = (S32)msg_box->mSlider1->getValue().asInteger(); |
186 | break; | 189 | break; |
187 | case VAR_TYPE_VEC3: | 190 | case VAR_TYPE_VEC3: |
191 | { | ||
188 | LLVector3* vec_p = (LLVector3*)msg_box->mVarData; | 192 | LLVector3* vec_p = (LLVector3*)msg_box->mVarData; |
189 | vec_p->setVec((F32)msg_box->mSlider1->getValue().asReal(), | 193 | vec_p->setVec((F32)msg_box->mSlider1->getValue().asReal(), |
190 | (F32)msg_box->mSlider2->getValue().asReal(), | 194 | (F32)msg_box->mSlider2->getValue().asReal(), |
191 | (F32)msg_box->mSlider3->getValue().asReal()); | 195 | (F32)msg_box->mSlider3->getValue().asReal()); |
192 | break; | 196 | break; |
193 | } | 197 | } |
198 | default: | ||
199 | llwarns << "Unhandled var type " << msg_box->mVarType << llendl; | ||
200 | break; | ||
201 | } | ||
194 | } | 202 | } |
195 | 203 | ||
196 | void LLDebugVarMessageBox::onAnimateClicked(void* user_data) | 204 | void LLDebugVarMessageBox::onAnimateClicked(void* user_data) |
@@ -217,10 +225,15 @@ void LLDebugVarMessageBox::draw() | |||
217 | snprintf(text, sizeof(text), "%d", *((S32*)mVarData)); /* Flawfinder: ignore */ | 225 | snprintf(text, sizeof(text), "%d", *((S32*)mVarData)); /* Flawfinder: ignore */ |
218 | break; | 226 | break; |
219 | case VAR_TYPE_VEC3: | 227 | case VAR_TYPE_VEC3: |
228 | { | ||
220 | LLVector3* vec_p = (LLVector3*)mVarData; | 229 | LLVector3* vec_p = (LLVector3*)mVarData; |
221 | snprintf(text, sizeof(text), "%.3f %.3f %.3f", vec_p->mV[VX], vec_p->mV[VY], vec_p->mV[VZ]); /* Flawfinder: ignore */ | 230 | snprintf(text, sizeof(text), "%.3f %.3f %.3f", vec_p->mV[VX], vec_p->mV[VY], vec_p->mV[VZ]); /* Flawfinder: ignore */ |
222 | break; | 231 | break; |
223 | } | 232 | } |
233 | default: | ||
234 | llwarns << "Unhandled var type " << mVarType << llendl; | ||
235 | break; | ||
236 | } | ||
224 | mText->setText(text); | 237 | mText->setText(text); |
225 | 238 | ||
226 | if(mAnimate) | 239 | if(mAnimate) |