Don't be retarded, LL.
Thanks to Drake Arconis for pointing this out.
This commit is contained in:
@@ -2257,47 +2257,6 @@ void LLPanelObject::draw()
|
|||||||
LLPanel::draw();
|
LLPanel::draw();
|
||||||
}
|
}
|
||||||
|
|
||||||
// virtual
|
|
||||||
void LLPanelObject::clearCtrls()
|
|
||||||
{
|
|
||||||
LLPanel::clearCtrls();
|
|
||||||
|
|
||||||
mCheckLock ->set(FALSE);
|
|
||||||
mCheckLock ->setEnabled( FALSE );
|
|
||||||
mCheckPhysics ->set(FALSE);
|
|
||||||
mCheckPhysics ->setEnabled( FALSE );
|
|
||||||
mCheckTemporary ->set(FALSE);
|
|
||||||
mCheckTemporary ->setEnabled( FALSE );
|
|
||||||
mCheckPhantom ->set(FALSE);
|
|
||||||
mCheckPhantom ->setEnabled( FALSE );
|
|
||||||
mComboMaterial ->setEnabled( FALSE );
|
|
||||||
mLabelMaterial ->setEnabled( FALSE );
|
|
||||||
// Disable text labels
|
|
||||||
mLabelPosition ->setEnabled( FALSE );
|
|
||||||
mLabelSize ->setEnabled( FALSE );
|
|
||||||
mLabelRotation ->setEnabled( FALSE );
|
|
||||||
mLabelBaseType ->setEnabled( FALSE );
|
|
||||||
mLabelCut ->setEnabled( FALSE );
|
|
||||||
mLabelHollow ->setEnabled( FALSE );
|
|
||||||
mLabelHoleType ->setEnabled( FALSE );
|
|
||||||
mLabelTwist ->setEnabled( FALSE );
|
|
||||||
mLabelSkew ->setEnabled( FALSE );
|
|
||||||
mLabelShear ->setEnabled( FALSE );
|
|
||||||
mLabelTaper ->setEnabled( FALSE );
|
|
||||||
mLabelRadiusOffset->setEnabled( FALSE );
|
|
||||||
mLabelRevolutions->setEnabled( FALSE );
|
|
||||||
|
|
||||||
childSetVisible("select_single", FALSE);
|
|
||||||
childSetVisible("edit_object", TRUE);
|
|
||||||
childSetEnabled("edit_object", FALSE);
|
|
||||||
|
|
||||||
childSetEnabled("scale_hole", FALSE);
|
|
||||||
childSetEnabled("scale_taper", FALSE);
|
|
||||||
childSetEnabled("advanced_cut", FALSE);
|
|
||||||
childSetEnabled("advanced_dimple", FALSE);
|
|
||||||
childSetVisible("advanced_slice", FALSE);
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Static functions
|
// Static functions
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ public:
|
|||||||
|
|
||||||
virtual BOOL postBuild();
|
virtual BOOL postBuild();
|
||||||
virtual void draw();
|
virtual void draw();
|
||||||
virtual void clearCtrls();
|
|
||||||
|
|
||||||
void refresh();
|
void refresh();
|
||||||
|
|
||||||
|
|||||||
@@ -512,51 +512,6 @@ void LLPanelVolume::draw()
|
|||||||
LLPanel::draw();
|
LLPanel::draw();
|
||||||
}
|
}
|
||||||
|
|
||||||
// virtual
|
|
||||||
void LLPanelVolume::clearCtrls()
|
|
||||||
{
|
|
||||||
LLPanel::clearCtrls();
|
|
||||||
|
|
||||||
getChildView("select_single")->setEnabled(false);
|
|
||||||
getChildView("select_single")->setVisible(true);
|
|
||||||
getChildView("edit_object")->setEnabled(false);
|
|
||||||
getChildView("edit_object")->setVisible(false);
|
|
||||||
getChildView("Light Checkbox Ctrl")->setEnabled(false);
|
|
||||||
getChildView("label color")->setEnabled(false);
|
|
||||||
LLColorSwatchCtrl* LightColorSwatch = getChild<LLColorSwatchCtrl>("colorswatch");
|
|
||||||
if(LightColorSwatch)
|
|
||||||
{
|
|
||||||
LightColorSwatch->setEnabled( FALSE );
|
|
||||||
LightColorSwatch->setValid( FALSE );
|
|
||||||
}
|
|
||||||
childSetEnabled("label texture",false);
|
|
||||||
LLTextureCtrl* LightTextureCtrl = getChild<LLTextureCtrl>("light texture control");
|
|
||||||
if(LightTextureCtrl)
|
|
||||||
{
|
|
||||||
LightTextureCtrl->setEnabled( FALSE );
|
|
||||||
LightTextureCtrl->setValid( FALSE );
|
|
||||||
}
|
|
||||||
|
|
||||||
getChildView("Light Intensity")->setEnabled(false);
|
|
||||||
getChildView("Light Radius")->setEnabled(false);
|
|
||||||
getChildView("Light Falloff")->setEnabled(false);
|
|
||||||
|
|
||||||
getChildView("Flexible1D Checkbox Ctrl")->setEnabled(false);
|
|
||||||
getChildView("FlexNumSections")->setEnabled(false);
|
|
||||||
getChildView("FlexGravity")->setEnabled(false);
|
|
||||||
getChildView("FlexTension")->setEnabled(false);
|
|
||||||
getChildView("FlexFriction")->setEnabled(false);
|
|
||||||
getChildView("FlexWind")->setEnabled(false);
|
|
||||||
getChildView("FlexForceX")->setEnabled(false);
|
|
||||||
getChildView("FlexForceY")->setEnabled(false);
|
|
||||||
getChildView("FlexForceZ")->setEnabled(false);
|
|
||||||
|
|
||||||
mSpinPhysicsGravity->setEnabled(FALSE);
|
|
||||||
mSpinPhysicsFriction->setEnabled(FALSE);
|
|
||||||
mSpinPhysicsDensity->setEnabled(FALSE);
|
|
||||||
mSpinPhysicsRestitution->setEnabled(FALSE);
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Static functions
|
// Static functions
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ public:
|
|||||||
virtual ~LLPanelVolume();
|
virtual ~LLPanelVolume();
|
||||||
|
|
||||||
virtual void draw();
|
virtual void draw();
|
||||||
virtual void clearCtrls();
|
|
||||||
|
|
||||||
virtual BOOL postBuild();
|
virtual BOOL postBuild();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user