Cleanup. Removal of dead code. Added/renamed object flag accessors.
This commit is contained in:
@@ -394,7 +394,6 @@ LLPanelObject::LLPanelObject(const std::string& name)
|
||||
mIsPhysical(FALSE),
|
||||
mIsTemporary(FALSE),
|
||||
mIsPhantom(FALSE),
|
||||
mCastShadows(TRUE),
|
||||
mSelectedType(MI_BOX)
|
||||
{
|
||||
}
|
||||
@@ -659,7 +658,7 @@ void LLPanelObject::getState( )
|
||||
BOOL is_flexible = volobjp && volobjp->isFlexible();
|
||||
|
||||
// Physics checkbox
|
||||
mIsPhysical = root_objectp->usePhysics();
|
||||
mIsPhysical = root_objectp->flagUsePhysics();
|
||||
mCheckPhysics->set( mIsPhysical );
|
||||
mCheckPhysics->setEnabled( roots_selected>0
|
||||
&& (editable || gAgent.isGodlike())
|
||||
@@ -673,12 +672,6 @@ void LLPanelObject::getState( )
|
||||
mCheckPhantom->set( mIsPhantom );
|
||||
mCheckPhantom->setEnabled( roots_selected>0 && editable && !is_flexible );
|
||||
|
||||
#if 0 // 1.9.2
|
||||
mCastShadows = root_objectp->flagCastShadows();
|
||||
mCheckCastShadows->set( mCastShadows );
|
||||
mCheckCastShadows->setEnabled( roots_selected==1 && editable );
|
||||
#endif
|
||||
|
||||
// Update material part
|
||||
// slightly inefficient - materials are unique per object, not per TE
|
||||
U8 material_code = 0;
|
||||
@@ -1525,22 +1518,6 @@ void LLPanelObject::sendIsPhantom()
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelObject::sendCastShadows()
|
||||
{
|
||||
BOOL value = mCheckCastShadows->get();
|
||||
if( mCastShadows != value )
|
||||
{
|
||||
LLSelectMgr::getInstance()->selectionUpdateCastShadows(value);
|
||||
mCastShadows = value;
|
||||
|
||||
llinfos << "update cast shadows sent" << llendl;
|
||||
}
|
||||
else
|
||||
{
|
||||
llinfos << "update cast shadows not changed" << llendl;
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
void LLPanelObject::onCommitMaterial( LLUICtrl* ctrl, void* userdata )
|
||||
{
|
||||
@@ -2369,10 +2346,6 @@ void LLPanelObject::clearCtrls()
|
||||
mCheckTemporary ->setEnabled( FALSE );
|
||||
mCheckPhantom ->set(FALSE);
|
||||
mCheckPhantom ->setEnabled( FALSE );
|
||||
#if 0 // 1.9.2
|
||||
mCheckCastShadows->set(FALSE);
|
||||
mCheckCastShadows->setEnabled( FALSE );
|
||||
#endif
|
||||
mComboMaterial ->setEnabled( FALSE );
|
||||
mLabelMaterial ->setEnabled( FALSE );
|
||||
// Disable text labels
|
||||
@@ -2468,14 +2441,6 @@ void LLPanelObject::onCommitPhantom( LLUICtrl* ctrl, void* userdata )
|
||||
self->sendIsPhantom();
|
||||
}
|
||||
|
||||
// static
|
||||
void LLPanelObject::onCommitCastShadows( LLUICtrl* ctrl, void* userdata )
|
||||
{
|
||||
LLPanelObject* self = (LLPanelObject*) userdata;
|
||||
self->sendCastShadows();
|
||||
}
|
||||
|
||||
|
||||
// static
|
||||
void LLPanelObject::onSelectSculpt(LLUICtrl* ctrl, void* userdata)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user