Picked up a few small changes from viewer-beta pertaining to pathfinding.

This commit is contained in:
Shyotl
2012-10-22 03:08:51 -05:00
parent 9ef10b1663
commit 7dea357f4c
2 changed files with 14 additions and 10 deletions

View File

@@ -5460,9 +5460,12 @@ BOOL LLViewerObject::setFlagsWithoutUpdate(U32 flags, BOOL state)
void LLViewerObject::setPhysicsShapeType(U8 type)
{
mPhysicsShapeUnknown = false;
if (type != mPhysicsShapeType)
{
mPhysicsShapeType = type;
mCostStale = true;
}
}
void LLViewerObject::setPhysicsGravity(F32 gravity)
{
@@ -5488,7 +5491,6 @@ U8 LLViewerObject::getPhysicsShapeType() const
{
if (mPhysicsShapeUnknown)
{
mPhysicsShapeUnknown = false;
gObjectList.updatePhysicsFlags(this);
}