diff --git a/indra/newview/fspanelface.cpp b/indra/newview/fspanelface.cpp index 72f082ab6b..d5f67221db 100644 --- a/indra/newview/fspanelface.cpp +++ b/indra/newview/fspanelface.cpp @@ -5481,7 +5481,7 @@ bool FSPanelFace::Selection::compareSelection() return selection_changed; } -void FSPanelFace::onCommitGLTFUVSpinner(const LLUICtrl* ctrl, const LLSD& user_data) +void FSPanelFace::onCommitGLTFUVSpinner(LLUICtrl* ctrl, const LLSD& user_data) { // TODO: put into .h -Zi static std::map types = @@ -5505,6 +5505,7 @@ void FSPanelFace::onCommitGLTFUVSpinner(const LLUICtrl* ctrl, const LLSD& user_d const std::string& spinner_name = ctrl->getName(); const float value = (F32)ctrl->getValue().asReal(); + ctrl->setFocus(true); if (LLStringUtil::startsWith(spinner_name, "gltfTextureScaleU")) { diff --git a/indra/newview/fspanelface.h b/indra/newview/fspanelface.h index 53604fa23d..0321f0b6ea 100644 --- a/indra/newview/fspanelface.h +++ b/indra/newview/fspanelface.h @@ -284,7 +284,7 @@ protected: static void syncMaterialRot(FSPanelFace* self, F32 rot, int te = -1); // unify all GLTF spinners with no switching around required -Zi - void onCommitGLTFUVSpinner(const LLUICtrl* ctrl, const LLSD& user_data); + void onCommitGLTFUVSpinner(LLUICtrl* ctrl, const LLSD& user_data); void onClickBtnSelectSameTexture(const LLUICtrl* ctrl, const LLSD& user_data); // Find all faces with same texture void onShowFindAllButton(LLUICtrl* ctrl, const LLSD& user_data); // Find all faces with same texture