Added missing spinner focuses for PBR to improve sync.

meow-7.2.2
Hecklezz 2025-04-01 09:37:57 +10:00
parent f3c1b68fe6
commit a14d0048a5
2 changed files with 3 additions and 2 deletions

View File

@ -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<std::string, LLGLTFMaterial::TextureInfo> 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"))
{

View File

@ -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