Solve Issue 1539: XML Export consistently fails as of latest alpha (build 5824)

This commit is contained in:
Inusaito Sayori
2014-09-11 22:26:45 -04:00
parent 86ff77665c
commit 8dca737dc8
3 changed files with 14 additions and 1 deletions

View File

@@ -627,7 +627,7 @@ void LLObjectBackup::exportWorker(void *userdata)
virtual bool apply(LLSelectNode* node)
{
LLViewerObject* object = node->getObject();
return object->getPhysicsShapeUnknown();
return gObjectList.gotObjectPhysicsFlags(object);
}
} func;

View File

@@ -1216,6 +1216,17 @@ void LLViewerObjectList::fetchPhysicsFlags()
}
}
bool LLViewerObjectList::gotObjectPhysicsFlags(LLViewerObject* objectp)
{
// This will insert objectp in mStalePhysicsFlags if needed:
objectp->getPhysicsShapeType();
// Data has been retrieved if the object is not in either of the
// two lists:
const LLUUID& id = objectp->getID();
return mPendingPhysicsFlags.count(id) == 0 &&
mStalePhysicsFlags.count(id) == 0;
}
void LLViewerObjectList::clearDebugText()
{
for (vobj_list_t::iterator iter = mObjects.begin(); iter != mObjects.end(); ++iter)

View File

@@ -99,6 +99,8 @@ public:
void fetchObjectCosts();
void fetchPhysicsFlags();
bool gotObjectPhysicsFlags(LLViewerObject* objectp);
void updateObjectCost(LLViewerObject* object);
void updateObjectCost(const LLUUID& object_id, F32 object_cost, F32 link_cost, F32 physics_cost, F32 link_physics_cost);
void onObjectCostFetchFailure(const LLUUID& object_id);