diff options
| author | Matthew Breindel (Falcon) <falcon@lindenlab.com> | 2010-07-09 17:47:58 -0700 |
|---|---|---|
| committer | Matthew Breindel (Falcon) <falcon@lindenlab.com> | 2010-07-09 17:47:58 -0700 |
| commit | 3733337011c781b6dabe978181d8ae4c5c96188b (patch) | |
| tree | 91cda565eda0dd492ce2709ce454b7f9dfa74542 /indra/newview/llpanelobject.cpp | |
| parent | 2530b057bb18550ed2825c14988a807ab90d460f (diff) | |
Gravity, Friction, Restitution, Density now work with simulator.
Diffstat (limited to 'indra/newview/llpanelobject.cpp')
| -rw-r--r-- | indra/newview/llpanelobject.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/indra/newview/llpanelobject.cpp b/indra/newview/llpanelobject.cpp index e972e17894..55e73731c1 100644 --- a/indra/newview/llpanelobject.cpp +++ b/indra/newview/llpanelobject.cpp @@ -146,10 +146,6 @@ BOOL LLPanelObject::postBuild() mSpinPhysicsGravity = getChild<LLSpinCtrl>("Physics Gravity"); childSetCommitCallback("Physics Gravity", onCommitPhysicsParam, this); - // PhysicsMaterialOverride - mCheckPhysicsMaterialOverride = getChild<LLCheckBoxCtrl>("Physics Material Override"); - childSetCommitCallback("Physics Material Override", onCommitPhysicsParam, this); - // PhysicsFriction mSpinPhysicsFriction = getChild<LLSpinCtrl>("Physics Friction"); childSetCommitCallback("Physics Friction", onCommitPhysicsParam, this); @@ -558,9 +554,6 @@ void LLPanelObject::getState( ) mSpinPhysicsGravity->set(objectp->getPhysicsGravity()); mSpinPhysicsGravity->setEnabled(editable); - mCheckPhysicsMaterialOverride->set(objectp->getPhysicsMaterialOverride()); - mCheckPhysicsMaterialOverride->setEnabled(editable); - mSpinPhysicsFriction->set(objectp->getPhysicsFriction()); mSpinPhysicsFriction->setEnabled(editable); @@ -1289,13 +1282,12 @@ void LLPanelObject::sendPhysicsParam() { U8 type = (U8)mComboPhysicsShapeType->getCurrentIndex(); F32 gravity = mSpinPhysicsGravity->get(); - BOOL material_override = mCheckPhysicsMaterialOverride->get(); F32 friction = mSpinPhysicsFriction->get(); F32 density = mSpinPhysicsDensity->get(); F32 restitution = mSpinPhysicsRestitution->get(); - LLSelectMgr::getInstance()->selectionUpdatePhysicsParam(type, gravity, material_override, - friction, density, restitution); + LLSelectMgr::getInstance()->selectionUpdatePhysicsParam(type, gravity, friction, + density, restitution); std::string url = gAgent.getRegion()->getCapability("GetObjectCost"); LLSD body = LLSD::emptyArray(); @@ -1982,7 +1974,6 @@ void LLPanelObject::clearCtrls() mComboPhysicsShapeType->setCurrentByIndex(0); mComboPhysicsShapeType->setEnabled(FALSE); mSpinPhysicsGravity->setEnabled(FALSE); - mCheckPhysicsMaterialOverride->setEnabled(FALSE); mSpinPhysicsFriction->setEnabled(FALSE); mSpinPhysicsDensity->setEnabled(FALSE); mSpinPhysicsRestitution->setEnabled(FALSE); |
