Disabling the phantom toggle when the object is volume-detect.

master
Todd Stinson 2012-07-13 15:26:02 -07:00
parent 5cc36ff228
commit 9128191713
1 changed files with 2 additions and 1 deletions

View File

@ -515,9 +515,10 @@ void LLPanelObject::getState( )
mCheckTemporary->setEnabled( roots_selected>0 && editable && !is_permanent);
mIsPhantom = root_objectp->flagPhantom();
BOOL is_volume_detect = root_objectp->flagVolumeDetect();
llassert(!is_character || !mIsPhantom); // should never have a character that is also a phantom
mCheckPhantom->set( mIsPhantom );
mCheckPhantom->setEnabled( roots_selected>0 && editable && !is_flexible && !is_permanent_enforced && !is_character);
mCheckPhantom->setEnabled( roots_selected>0 && editable && !is_flexible && !is_permanent_enforced && !is_character && !is_volume_detect);
//----------------------------------------------------------------------------