Added missing spinner focuses for PBR to improve sync.
parent
f3c1b68fe6
commit
a14d0048a5
|
|
@ -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"))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue