SL-15999 - noninteractive: debugging run issues, suppress AFK/Away pose

master
Brad Payne (Vir Linden) 2021-09-27 21:23:49 +01:00
parent ec16b30f3b
commit 502d37913d
4 changed files with 12 additions and 2 deletions

View File

@ -1481,7 +1481,7 @@ void LLAgent::resetControlFlags()
//-----------------------------------------------------------------------------
void LLAgent::setAFK()
{
if (!gAgent.getRegion())
if (gNonInteractive || !gAgent.getRegion())
{
// Don't set AFK if we're not talking to a region yet.
return;

View File

@ -1559,7 +1559,7 @@ bool LLAppViewer::doFrame()
if (gNonInteractive)
{
S32 non_interactive_ms_sleep_time = 1000;
S32 non_interactive_ms_sleep_time = 100;
LLAppViewer::getTextureCache()->pause();
LLAppViewer::getImageDecodeThread()->pause();
ms_sleep(non_interactive_ms_sleep_time);

View File

@ -4077,6 +4077,11 @@ void process_avatar_animation(LLMessageSystem *mesgsys, void **user_data)
gAgent.setFlying(FALSE);
}
if (gNonInteractive && animation_id == ANIM_AGENT_RUN)
{
LL_INFOS() << "Noninteractive, got run request for self" << LL_ENDL;
}
if (i < num_source_blocks)
{
mesgsys->getUUIDFast(_PREHASH_AnimationSourceList, _PREHASH_ObjectID, object_id, i);

View File

@ -3807,6 +3807,11 @@ LLViewerInventoryItem* recursiveGetObjectInventoryItem(LLViewerObject *vobj, LLU
void LLVOAvatar::updateAnimationDebugText()
{
if (isSelf() && gNonInteractive)
{
LLVector3 vel = getVelocity();
addDebugText(llformat("vel %f %f %f\n",vel[0],vel[1],vel[2]));
}
for (LLMotionController::motion_list_t::iterator iter = mMotionController.getActiveMotions().begin();
iter != mMotionController.getActiveMotions().end(); ++iter)
{