summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Kaprielian <sabin@lindenlab.com>2007-04-04 23:12:50 +0000
committerDave Kaprielian <sabin@lindenlab.com>2007-04-04 23:12:50 +0000
commitfd5608a3e79397d4ebc8819dc9de75863f6fb9b3 (patch)
tree3ba84fc34cdbc65a7dfb7b3f2f55a86d12c6de17
parent170d61d2003b28b6d9a06171e3b33e8cd16aa85e (diff)
SL-21064 Made it so you can now check physical, temporary, and phantom for multiple-selected objects. Reviewed by Richard.
-rw-r--r--indra/newview/llpanelobject.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llpanelobject.cpp b/indra/newview/llpanelobject.cpp
index 39d77c630b..314b7bed8f 100644
--- a/indra/newview/llpanelobject.cpp
+++ b/indra/newview/llpanelobject.cpp
@@ -428,17 +428,17 @@ void LLPanelObject::getState( )
// Physics checkbox
mIsPhysical = root_objectp->usePhysics();
mCheckPhysics->set( mIsPhysical );
- mCheckPhysics->setEnabled( roots_selected==1
+ mCheckPhysics->setEnabled( roots_selected>0
&& (editable || gAgent.isGodlike())
&& !is_flexible);
mIsTemporary = root_objectp->flagTemporaryOnRez();
mCheckTemporary->set( mIsTemporary );
- mCheckTemporary->setEnabled( roots_selected==1 && editable );
+ mCheckTemporary->setEnabled( roots_selected>0 && editable );
mIsPhantom = root_objectp->flagPhantom();
mCheckPhantom->set( mIsPhantom );
- mCheckPhantom->setEnabled( roots_selected==1 && editable && !is_flexible );
+ mCheckPhantom->setEnabled( roots_selected>0 && editable && !is_flexible );
#if 0 // 1.9.2
mCastShadows = root_objectp->flagCastShadows();