diff options
Diffstat (limited to 'linden/indra/llui/llspinctrl.cpp')
-rw-r--r-- | linden/indra/llui/llspinctrl.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/llui/llspinctrl.cpp b/linden/indra/llui/llspinctrl.cpp index 9e85b20..f196975 100644 --- a/linden/indra/llui/llspinctrl.cpp +++ b/linden/indra/llui/llspinctrl.cpp | |||
@@ -249,6 +249,18 @@ void LLSpinCtrl::setValue(const LLSD& value ) | |||
249 | } | 249 | } |
250 | } | 250 | } |
251 | 251 | ||
252 | //no matter if Editor has the focus, update the value | ||
253 | void LLSpinCtrl::forceSetValue(const LLSD& value ) | ||
254 | { | ||
255 | F32 v = (F32)value.asReal(); | ||
256 | if (mValue != v || !mbHasBeenSet) | ||
257 | { | ||
258 | mbHasBeenSet = TRUE; | ||
259 | mValue = v; | ||
260 | |||
261 | updateEditor(); | ||
262 | } | ||
263 | } | ||
252 | 264 | ||
253 | void LLSpinCtrl::clear() | 265 | void LLSpinCtrl::clear() |
254 | { | 266 | { |