Merge branch 'Moap' of git://github.com/Shyotl/SingularityViewer into VoiceUpdate
Conflicts: indra/newview/llfloateractivespeakers.h - llparticipantlist.h got changed from a panel to a layoutpanel indra/newview/lloverlaybar.cpp - Silly conflict, I change one line, Shyotl changes the next two. Compile fixies: indra/newview/llavataractions.cpp needed to include llnotifications.h indra/newview/llvoicechannel.cpp needed to include llnotifications.h
This commit is contained in:
@@ -79,6 +79,22 @@
|
||||
|
||||
BOOL LLPanelFace::postBuild()
|
||||
{
|
||||
childSetCommitCallback("combobox shininess",&LLPanelFace::onCommitShiny,this);
|
||||
childSetCommitCallback("combobox bumpiness",&LLPanelFace::onCommitBump,this);
|
||||
|
||||
childSetCommitCallback("TexScaleU",&LLPanelFace::onCommitTextureInfo, this);
|
||||
childSetCommitCallback("checkbox flip s",&LLPanelFace::onCommitTextureInfo, this);
|
||||
childSetCommitCallback("TexScaleV",&LLPanelFace::onCommitTextureInfo, this);
|
||||
childSetCommitCallback("checkbox flip t",&LLPanelFace::onCommitTextureInfo, this);
|
||||
childSetCommitCallback("TexRot",&LLPanelFace::onCommitTextureInfo, this);
|
||||
childSetAction("button apply",&LLPanelFace::onClickApply,this);
|
||||
childSetCommitCallback("checkbox planar align",&LLPanelFace::onCommitPlanarAlign, this);
|
||||
childSetCommitCallback("TexOffsetU",LLPanelFace::onCommitTextureInfo, this);
|
||||
childSetCommitCallback("TexOffsetV",LLPanelFace::onCommitTextureInfo, this);
|
||||
childSetAction("button align",&LLPanelFace::onClickAutoFix,this);
|
||||
childSetAction("copytextures",&LLPanelFace::onClickCopy,this);
|
||||
childSetAction("pastetextures",&LLPanelFace::onClickPaste,this);
|
||||
|
||||
LLTextureCtrl* mTextureCtrl;
|
||||
LLColorSwatchCtrl* mColorSwatch;
|
||||
|
||||
@@ -96,7 +112,7 @@ BOOL LLPanelFace::postBuild()
|
||||
if(mTextureCtrl)
|
||||
{
|
||||
mTextureCtrl->setDefaultImageAssetID(LLUUID( gSavedSettings.getString( "DefaultObjectTexture" )));
|
||||
mTextureCtrl->setCommitCallback( LLPanelFace::onCommitTexture );
|
||||
mTextureCtrl->setCommitCallback( boost::bind(&LLPanelFace::onCommitTexture, this, _2) );
|
||||
mTextureCtrl->setOnCancelCallback( LLPanelFace::onCancelTexture );
|
||||
mTextureCtrl->setOnSelectCallback( LLPanelFace::onSelectTexture );
|
||||
mTextureCtrl->setDragCallback(LLPanelFace::onDragTexture);
|
||||
@@ -127,7 +143,7 @@ BOOL LLPanelFace::postBuild()
|
||||
mColorSwatch = getChild<LLColorSwatchCtrl>("colorswatch");
|
||||
if(mColorSwatch)
|
||||
{
|
||||
mColorSwatch->setCommitCallback(LLPanelFace::onCommitColor);
|
||||
mColorSwatch->setCommitCallback(boost::bind(&LLPanelFace::onCommitColor, this, _2));
|
||||
mColorSwatch->setOnCancelCallback(LLPanelFace::onCancelColor);
|
||||
mColorSwatch->setOnSelectCallback(LLPanelFace::onSelectColor);
|
||||
mColorSwatch->setCallbackUserData( this );
|
||||
@@ -146,8 +162,7 @@ BOOL LLPanelFace::postBuild()
|
||||
mCtrlColorTransp = getChild<LLSpinCtrl>("ColorTrans");
|
||||
if(mCtrlColorTransp)
|
||||
{
|
||||
mCtrlColorTransp->setCommitCallback(LLPanelFace::onCommitAlpha);
|
||||
mCtrlColorTransp->setCallbackUserData(this);
|
||||
mCtrlColorTransp->setCommitCallback(boost::bind(&LLPanelFace::onCommitAlpha, this, _2));
|
||||
mCtrlColorTransp->setPrecision(0);
|
||||
mCtrlColorTransp->setFollowsTop();
|
||||
mCtrlColorTransp->setFollowsLeft();
|
||||
@@ -156,39 +171,22 @@ BOOL LLPanelFace::postBuild()
|
||||
mCheckFullbright = getChild<LLCheckBoxCtrl>("checkbox fullbright");
|
||||
if (mCheckFullbright)
|
||||
{
|
||||
mCheckFullbright->setCommitCallback(LLPanelFace::onCommitFullbright);
|
||||
mCheckFullbright->setCallbackUserData( this );
|
||||
mCheckFullbright->setCommitCallback(LLPanelFace::onCommitFullbright, this);
|
||||
}
|
||||
|
||||
mComboTexGen = getChild<LLComboBox>("combobox texgen");
|
||||
if(mComboTexGen)
|
||||
{
|
||||
mComboTexGen->setCommitCallback(LLPanelFace::onCommitTexGen);
|
||||
mComboTexGen->setCommitCallback(LLPanelFace::onCommitTexGen, this);
|
||||
mComboTexGen->setFollows(FOLLOWS_LEFT | FOLLOWS_TOP);
|
||||
mComboTexGen->setCallbackUserData( this );
|
||||
}
|
||||
|
||||
mCtrlGlow = getChild<LLSpinCtrl>("glow");
|
||||
if(mCtrlGlow)
|
||||
{
|
||||
mCtrlGlow->setCommitCallback(LLPanelFace::onCommitGlow);
|
||||
mCtrlGlow->setCallbackUserData(this);
|
||||
mCtrlGlow->setCommitCallback(LLPanelFace::onCommitGlow, this);
|
||||
}
|
||||
|
||||
childSetCommitCallback("combobox shininess",&LLPanelFace::onCommitShiny,this);
|
||||
childSetCommitCallback("combobox bumpiness",&LLPanelFace::onCommitBump,this);
|
||||
childSetCommitCallback("checkbox planar align",&LLPanelFace::onCommitPlanarAlign, this);
|
||||
childSetCommitCallback("TexScaleU",&LLPanelFace::onCommitTextureInfo, this);
|
||||
childSetCommitCallback("checkbox flip s",&LLPanelFace::onCommitTextureInfo, this);
|
||||
childSetCommitCallback("TexScaleV",&LLPanelFace::onCommitTextureInfo, this);
|
||||
childSetCommitCallback("checkbox flip t",&LLPanelFace::onCommitTextureInfo, this);
|
||||
childSetCommitCallback("TexRot",&LLPanelFace::onCommitTextureInfo, this);
|
||||
childSetAction("button apply",&onClickApply,this);
|
||||
childSetCommitCallback("TexOffsetU",LLPanelFace::onCommitTextureInfo, this);
|
||||
childSetCommitCallback("TexOffsetV",LLPanelFace::onCommitTextureInfo, this);
|
||||
childSetAction("button align",onClickAutoFix,this);
|
||||
childSetAction("copytextures",onClickCopy,this);
|
||||
childSetAction("pastetextures",onClickPaste,this);
|
||||
|
||||
clearCtrls();
|
||||
|
||||
@@ -521,12 +519,9 @@ void LLPanelFace::getState()
|
||||
{
|
||||
BOOL editable = objectp->permModify() && !objectp->isPermanentEnforced();
|
||||
|
||||
|
||||
// only turn on auto-adjust button if there is a media renderer and the media is loaded
|
||||
childSetEnabled("textbox autofix",FALSE);
|
||||
//mLabelTexAutoFix->setEnabled ( FALSE );
|
||||
childSetEnabled("button align",FALSE);
|
||||
//mBtnAutoFix->setEnabled ( FALSE );
|
||||
getChildView("textbox autofix")->setEnabled(editable);
|
||||
getChildView("button align")->setEnabled(editable);
|
||||
|
||||
//if ( LLMediaEngine::getInstance()->getMediaRenderer () )
|
||||
// if ( LLMediaEngine::getInstance()->getMediaRenderer ()->isLoaded () )
|
||||
@@ -543,7 +538,7 @@ void LLPanelFace::getState()
|
||||
childSetEnabled("copytextures", single_volume && editable);
|
||||
childSetEnabled("pastetextures", single_volume && editable);
|
||||
childSetEnabled("textbox params", single_volume && editable);
|
||||
childSetEnabled("button apply",editable);
|
||||
getChildView("button apply")->setEnabled(editable);
|
||||
|
||||
bool identical;
|
||||
LLTextureCtrl* texture_ctrl = getChild<LLTextureCtrl>("texture control");
|
||||
@@ -684,7 +679,7 @@ void LLPanelFace::getState()
|
||||
|
||||
// Texture scale
|
||||
{
|
||||
childSetEnabled("tex scale",editable);
|
||||
getChildView("tex scale")->setEnabled(editable);
|
||||
//mLabelTexScale->setEnabled( editable );
|
||||
F32 scale_s = 1.f;
|
||||
struct f2 : public LLSelectedTEGetFunctor<F32>
|
||||
@@ -696,12 +691,12 @@ void LLPanelFace::getState()
|
||||
} func;
|
||||
identical = LLSelectMgr::getInstance()->getSelection()->getSelectedTEValue( &func, scale_s );
|
||||
identical = align_planar ? identical_planar_aligned : identical;
|
||||
childSetValue("TexScaleU",editable ? llabs(scale_s) : 0);
|
||||
childSetTentative("TexScaleU",LLSD((BOOL)(!identical)));
|
||||
childSetEnabled("TexScaleU",editable);
|
||||
childSetValue("checkbox flip s",LLSD((BOOL)(scale_s < 0 ? TRUE : FALSE )));
|
||||
childSetTentative("checkbox flip s",LLSD((BOOL)((!identical) ? TRUE : FALSE )));
|
||||
childSetEnabled("checkbox flip s",editable);
|
||||
getChild<LLUICtrl>("TexScaleU")->setValue(editable ? llabs(scale_s) : 0);
|
||||
getChild<LLUICtrl>("TexScaleU")->setTentative(LLSD((BOOL)(!identical)));
|
||||
getChildView("TexScaleU")->setEnabled(editable);
|
||||
getChild<LLUICtrl>("checkbox flip s")->setValue(LLSD((BOOL)(scale_s < 0 ? TRUE : FALSE )));
|
||||
getChild<LLUICtrl>("checkbox flip s")->setTentative(LLSD((BOOL)((!identical) ? TRUE : FALSE )));
|
||||
getChildView("checkbox flip s")->setEnabled(editable);
|
||||
}
|
||||
|
||||
{
|
||||
@@ -716,17 +711,17 @@ void LLPanelFace::getState()
|
||||
identical = LLSelectMgr::getInstance()->getSelection()->getSelectedTEValue( &func, scale_t );
|
||||
identical = align_planar ? identical_planar_aligned : identical;
|
||||
|
||||
childSetValue("TexScaleV",llabs(editable ? llabs(scale_t) : 0));
|
||||
childSetTentative("TexScaleV",LLSD((BOOL)(!identical)));
|
||||
childSetEnabled("TexScaleV",editable);
|
||||
childSetValue("checkbox flip t",LLSD((BOOL)(scale_t< 0 ? TRUE : FALSE )));
|
||||
childSetTentative("checkbox flip t",LLSD((BOOL)((!identical) ? TRUE : FALSE )));
|
||||
childSetEnabled("checkbox flip t",editable);
|
||||
getChild<LLUICtrl>("TexScaleV")->setValue(llabs(editable ? llabs(scale_t) : 0));
|
||||
getChild<LLUICtrl>("TexScaleV")->setTentative(LLSD((BOOL)(!identical)));
|
||||
getChildView("TexScaleV")->setEnabled(editable);
|
||||
getChild<LLUICtrl>("checkbox flip t")->setValue(LLSD((BOOL)(scale_t< 0 ? TRUE : FALSE )));
|
||||
getChild<LLUICtrl>("checkbox flip t")->setTentative(LLSD((BOOL)((!identical) ? TRUE : FALSE )));
|
||||
getChildView("checkbox flip t")->setEnabled(editable);
|
||||
}
|
||||
|
||||
// Texture offset
|
||||
{
|
||||
childSetEnabled("tex offset",editable);
|
||||
getChildView("tex offset")->setEnabled(editable);
|
||||
F32 offset_s = 0.f;
|
||||
struct f4 : public LLSelectedTEGetFunctor<F32>
|
||||
{
|
||||
@@ -737,9 +732,9 @@ void LLPanelFace::getState()
|
||||
} func;
|
||||
identical = LLSelectMgr::getInstance()->getSelection()->getSelectedTEValue( &func, offset_s );
|
||||
identical = align_planar ? identical_planar_aligned : identical;
|
||||
childSetValue("TexOffsetU", editable ? offset_s : 0);
|
||||
childSetTentative("TexOffsetU",!identical);
|
||||
childSetEnabled("TexOffsetU",editable);
|
||||
getChild<LLUICtrl>("TexOffsetU")->setValue(editable ? offset_s : 0);
|
||||
getChild<LLUICtrl>("TexOffsetU")->setTentative(!identical);
|
||||
getChildView("TexOffsetU")->setEnabled(editable);
|
||||
}
|
||||
|
||||
{
|
||||
@@ -753,14 +748,14 @@ void LLPanelFace::getState()
|
||||
} func;
|
||||
identical = LLSelectMgr::getInstance()->getSelection()->getSelectedTEValue( &func, offset_t );
|
||||
identical = align_planar ? identical_planar_aligned : identical;
|
||||
childSetValue("TexOffsetV", editable ? offset_t : 0);
|
||||
childSetTentative("TexOffsetV",!identical);
|
||||
childSetEnabled("TexOffsetV",editable);
|
||||
getChild<LLUICtrl>("TexOffsetV")->setValue(editable ? offset_t : 0);
|
||||
getChild<LLUICtrl>("TexOffsetV")->setTentative(!identical);
|
||||
getChildView("TexOffsetV")->setEnabled(editable);
|
||||
}
|
||||
|
||||
// Texture rotation
|
||||
{
|
||||
childSetEnabled("tex rotate",editable);
|
||||
getChildView("tex rotate")->setEnabled(editable);
|
||||
F32 rotation = 0.f;
|
||||
struct f6 : public LLSelectedTEGetFunctor<F32>
|
||||
{
|
||||
@@ -771,9 +766,9 @@ void LLPanelFace::getState()
|
||||
} func;
|
||||
identical = LLSelectMgr::getInstance()->getSelection()->getSelectedTEValue( &func, rotation );
|
||||
identical = align_planar ? identical_planar_aligned : identical;
|
||||
childSetValue("TexRot", editable ? rotation * RAD_TO_DEG : 0);
|
||||
childSetTentative("TexRot",!identical);
|
||||
childSetEnabled("TexRot",editable);
|
||||
getChild<LLUICtrl>("TexRot")->setValue(editable ? rotation * RAD_TO_DEG : 0);
|
||||
getChild<LLUICtrl>("TexRot")->setTentative(!identical);
|
||||
getChildView("TexRot")->setEnabled(editable);
|
||||
}
|
||||
|
||||
// Color swatch
|
||||
@@ -799,13 +794,13 @@ void LLPanelFace::getState()
|
||||
}
|
||||
// Color transparency
|
||||
{
|
||||
childSetEnabled("color trans",editable);
|
||||
getChildView("color trans")->setEnabled(editable);
|
||||
}
|
||||
|
||||
F32 transparency = (1.f - color.mV[VALPHA]) * 100.f;
|
||||
{
|
||||
childSetValue("ColorTrans", editable ? transparency : 0);
|
||||
childSetEnabled("ColorTrans",editable);
|
||||
getChild<LLUICtrl>("ColorTrans")->setValue(editable ? transparency : 0);
|
||||
getChildView("ColorTrans")->setEnabled(editable);
|
||||
}
|
||||
|
||||
{
|
||||
@@ -819,10 +814,10 @@ void LLPanelFace::getState()
|
||||
} func;
|
||||
identical = LLSelectMgr::getInstance()->getSelection()->getSelectedTEValue( &func, glow );
|
||||
|
||||
childSetValue("glow",glow);
|
||||
childSetEnabled("glow",editable);
|
||||
childSetTentative("glow",!identical);
|
||||
childSetEnabled("glow label",editable);
|
||||
getChild<LLUICtrl>("glow")->setValue(glow);
|
||||
getChildView("glow")->setEnabled(editable);
|
||||
getChild<LLUICtrl>("glow")->setTentative(!identical);
|
||||
getChildView("glow label")->setEnabled(editable);
|
||||
|
||||
}
|
||||
|
||||
@@ -847,9 +842,9 @@ void LLPanelFace::getState()
|
||||
{
|
||||
llwarns << "failed childGetSelectionInterface for 'combobox shininess'" << llendl;
|
||||
}
|
||||
childSetEnabled("combobox shininess",editable);
|
||||
childSetTentative("combobox shininess",!identical);
|
||||
childSetEnabled("label shininess",editable);
|
||||
getChildView("combobox shininess")->setEnabled(editable);
|
||||
getChild<LLUICtrl>("combobox shininess")->setTentative(!identical);
|
||||
getChildView("label shininess")->setEnabled(editable);
|
||||
}
|
||||
|
||||
{
|
||||
@@ -872,9 +867,9 @@ void LLPanelFace::getState()
|
||||
{
|
||||
llwarns << "failed childGetSelectionInterface for 'combobox bumpiness'" << llendl;
|
||||
}
|
||||
childSetEnabled("combobox bumpiness",editable);
|
||||
childSetTentative("combobox bumpiness",!identical);
|
||||
childSetEnabled("label bumpiness",editable);
|
||||
getChildView("combobox bumpiness")->setEnabled(editable);
|
||||
getChild<LLUICtrl>("combobox bumpiness")->setTentative(!identical);
|
||||
getChildView("label bumpiness")->setEnabled(editable);
|
||||
}
|
||||
|
||||
{
|
||||
@@ -898,19 +893,21 @@ void LLPanelFace::getState()
|
||||
{
|
||||
llwarns << "failed childGetSelectionInterface for 'combobox texgen'" << llendl;
|
||||
}
|
||||
childSetEnabled("combobox texgen",editable);
|
||||
childSetTentative("combobox texgen",!identical);
|
||||
childSetEnabled("tex gen",editable);
|
||||
getChildView("combobox texgen")->setEnabled(editable);
|
||||
getChild<LLUICtrl>("combobox texgen")->setTentative(!identical);
|
||||
getChildView("tex gen")->setEnabled(editable);
|
||||
|
||||
if (selected_texgen == 1)
|
||||
{
|
||||
childSetText("tex scale",getString("string repeats per meter"));
|
||||
childSetValue("TexScaleU", 2.0f * childGetValue("TexScaleU").asReal() );
|
||||
childSetValue("TexScaleV", 2.0f * childGetValue("TexScaleV").asReal() );
|
||||
getChild<LLUICtrl>("TexScaleU")->setValue(2.0f * getChild<LLUICtrl>("TexScaleU")->getValue().asReal() );
|
||||
getChild<LLUICtrl>("TexScaleV")->setValue(2.0f * getChild<LLUICtrl>("TexScaleV")->getValue().asReal() );
|
||||
|
||||
// EXP-1507 (change label based on the mapping mode)
|
||||
getChild<LLUICtrl>("tex scale")->setValue(getString("string repeats per meter"));
|
||||
}
|
||||
else
|
||||
{
|
||||
childSetText("tex scale",getString("string repeats per face"));
|
||||
getChild<LLUICtrl>("tex scale")->setValue(getString("string repeats per face"));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -926,14 +923,14 @@ void LLPanelFace::getState()
|
||||
} func;
|
||||
identical = LLSelectMgr::getInstance()->getSelection()->getSelectedTEValue( &func, fullbrightf );
|
||||
|
||||
childSetValue("checkbox fullbright",(S32)fullbrightf);
|
||||
childSetEnabled("checkbox fullbright",editable);
|
||||
childSetTentative("checkbox fullbright",!identical);
|
||||
getChild<LLUICtrl>("checkbox fullbright")->setValue((S32)fullbrightf);
|
||||
getChildView("checkbox fullbright")->setEnabled(editable);
|
||||
getChild<LLUICtrl>("checkbox fullbright")->setTentative(!identical);
|
||||
}
|
||||
|
||||
// Repeats per meter label
|
||||
{
|
||||
childSetEnabled("rpt",editable);
|
||||
getChildView("rpt")->setEnabled(editable);
|
||||
}
|
||||
|
||||
// Repeats per meter
|
||||
@@ -953,14 +950,14 @@ void LLPanelFace::getState()
|
||||
} func;
|
||||
identical = LLSelectMgr::getInstance()->getSelection()->getSelectedTEValue( &func, repeats );
|
||||
|
||||
childSetValue("rptctrl", editable ? repeats : 0);
|
||||
childSetTentative("rptctrl",!identical);
|
||||
getChild<LLUICtrl>("rptctrl")->setValue(editable ? repeats : 0);
|
||||
getChild<LLUICtrl>("rptctrl")->setTentative(!identical);
|
||||
LLComboBox* mComboTexGen = getChild<LLComboBox>("combobox texgen");
|
||||
if (mComboTexGen)
|
||||
{
|
||||
BOOL enabled = editable && (!mComboTexGen || mComboTexGen->getCurrentIndex() != 1);
|
||||
childSetEnabled("rptctrl",enabled);
|
||||
childSetEnabled("button apply",enabled);
|
||||
getChildView("rptctrl")->setEnabled(enabled);
|
||||
getChildView("button apply")->setEnabled(enabled);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -994,19 +991,21 @@ void LLPanelFace::getState()
|
||||
mColorSwatch->setFallbackImageName("locked_image.j2c" );
|
||||
mColorSwatch->setValid(FALSE);
|
||||
}
|
||||
childSetEnabled("color trans",FALSE);
|
||||
childSetEnabled("rpt",FALSE);
|
||||
childSetEnabled("tex scale",FALSE);
|
||||
childSetEnabled("tex offset",FALSE);
|
||||
childSetEnabled("tex rotate",FALSE);
|
||||
childSetEnabled("tex gen",FALSE);
|
||||
childSetEnabled("label shininess",FALSE);
|
||||
childSetEnabled("label bumpiness",FALSE);
|
||||
getChildView("color trans")->setEnabled(FALSE);
|
||||
getChildView("rpt")->setEnabled(FALSE);
|
||||
getChildView("tex scale")->setEnabled(FALSE);
|
||||
getChildView("tex offset")->setEnabled(FALSE);
|
||||
getChildView("tex rotate")->setEnabled(FALSE);
|
||||
getChildView("tex gen")->setEnabled(FALSE);
|
||||
getChildView("label shininess")->setEnabled(FALSE);
|
||||
getChildView("label bumpiness")->setEnabled(FALSE);
|
||||
|
||||
childSetEnabled("textbox autofix",FALSE);
|
||||
getChildView("textbox autofix")->setEnabled(FALSE);
|
||||
|
||||
childSetEnabled("button align",FALSE);
|
||||
childSetEnabled("button apply",FALSE);
|
||||
getChildView("button align")->setEnabled(FALSE);
|
||||
getChildView("button apply")->setEnabled(FALSE);
|
||||
//getChildView("has media")->setEnabled(FALSE);
|
||||
//getChildView("media info set")->setEnabled(FALSE);
|
||||
|
||||
|
||||
// Set variable values for numeric expressions
|
||||
@@ -1037,18 +1036,14 @@ F32 LLPanelFace::valueGlow(LLViewerObject* object, S32 face)
|
||||
}
|
||||
|
||||
|
||||
// static
|
||||
void LLPanelFace::onCommitColor(LLUICtrl* ctrl, void* userdata)
|
||||
void LLPanelFace::onCommitColor(const LLSD& data)
|
||||
{
|
||||
LLPanelFace* self = (LLPanelFace*) userdata;
|
||||
self->sendColor();
|
||||
sendColor();
|
||||
}
|
||||
|
||||
// static
|
||||
void LLPanelFace::onCommitAlpha(LLUICtrl* ctrl, void* userdata)
|
||||
void LLPanelFace::onCommitAlpha(const LLSD& data)
|
||||
{
|
||||
LLPanelFace* self = (LLPanelFace*) userdata;
|
||||
self->sendAlpha();
|
||||
sendAlpha();
|
||||
}
|
||||
|
||||
// static
|
||||
@@ -1118,14 +1113,10 @@ BOOL LLPanelFace::onDragTexture(LLUICtrl*, LLInventoryItem* item, void*)
|
||||
return accept;
|
||||
}
|
||||
|
||||
// static
|
||||
void LLPanelFace::onCommitTexture( LLUICtrl* ctrl, void* userdata )
|
||||
void LLPanelFace::onCommitTexture( const LLSD& data )
|
||||
{
|
||||
LLPanelFace* self = (LLPanelFace*) userdata;
|
||||
|
||||
LLViewerStats::getInstance()->incStat(LLViewerStats::ST_EDIT_TEXTURE_COUNT );
|
||||
|
||||
self->sendTexture();
|
||||
sendTexture();
|
||||
}
|
||||
|
||||
// static
|
||||
@@ -1138,7 +1129,7 @@ void LLPanelFace::onCancelTexture(LLUICtrl* ctrl, void* userdata)
|
||||
void LLPanelFace::onSelectTexture(LLUICtrl* ctrl, void* userdata)
|
||||
{
|
||||
LLPanelFace* self = (LLPanelFace*) userdata;
|
||||
LLSelectMgr::getInstance()->saveSelectedObjectTextures();
|
||||
LLSelectMgr::getInstance()->saveSelectedObjectTextures();
|
||||
self->sendTexture();
|
||||
}
|
||||
|
||||
@@ -1159,12 +1150,10 @@ void LLPanelFace::onClickApply(void* userdata)
|
||||
gFocusMgr.setKeyboardFocus( NULL );
|
||||
|
||||
//F32 repeats_per_meter = self->mCtrlRepeatsPerMeter->get();
|
||||
F32 repeats_per_meter = (F32)self->childGetValue( "rptctrl" ).asReal();//self->mCtrlRepeatsPerMeter->get();
|
||||
F32 repeats_per_meter = (F32)self->getChild<LLUICtrl>("rptctrl")->getValue().asReal();//self->mCtrlRepeatsPerMeter->get();
|
||||
LLSelectMgr::getInstance()->selectionTexScaleAutofit( repeats_per_meter );
|
||||
}
|
||||
|
||||
// commit the fit media texture to prim button
|
||||
|
||||
struct LLPanelFaceSetMediaFunctor : public LLSelectedTEFunctor
|
||||
{
|
||||
virtual bool apply(LLViewerObject* object, S32 te)
|
||||
|
||||
Reference in New Issue
Block a user