Merge branch 'master' of git://github.com/siana/SingularityViewer
This commit is contained in:
@@ -43,7 +43,6 @@
|
||||
#ifndef LL_LLFLEXIBLEOBJECT_H
|
||||
#define LL_LLFLEXIBLEOBJECT_H
|
||||
|
||||
#include "llmemory.h"
|
||||
#include "llprimitive.h"
|
||||
#include "llvovolume.h"
|
||||
#include "llwind.h"
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#define LL_LLFLOATERPROPERTIES_H
|
||||
|
||||
#include <map>
|
||||
#include "llfloater.h"
|
||||
#include "llmultifloater.h"
|
||||
#include "lliconctrl.h"
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#ifndef LL_LLFLOATERSCRIPTDEBUG_H
|
||||
#define LL_LLFLOATERSCRIPTDEBUG_H
|
||||
|
||||
#include "llfloater.h"
|
||||
#include "llmultifloater.h"
|
||||
|
||||
class LLTextEditor;
|
||||
class LLUUID;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "llcheckboxctrl.h"
|
||||
#include "llfocusmgr.h"
|
||||
#include "lluictrlfactory.h"
|
||||
#include "llmultifloater.h"
|
||||
|
||||
#include "llfloatersearchreplace.h"
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
* Base class and manager for in-world 2.5D non-interactive objects
|
||||
*/
|
||||
|
||||
#include "llmemory.h"
|
||||
#include "llpointer.h"
|
||||
|
||||
#include "v4color.h"
|
||||
#include "v3math.h"
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#ifndef LL_LLIMVIEW_H
|
||||
#define LL_LLIMVIEW_H
|
||||
|
||||
#include "llfloater.h"
|
||||
#include "llmultifloater.h"
|
||||
#include "llinstantmessage.h"
|
||||
#include "lluuid.h"
|
||||
|
||||
|
||||
@@ -91,15 +91,14 @@ void LLMorphView::initialize()
|
||||
mCameraYaw = 0.f;
|
||||
mCameraDist = -1.f;
|
||||
|
||||
LLVOAvatar *avatarp = gAgentAvatarp;
|
||||
if (!avatarp || avatarp->isDead())
|
||||
if (!isAgentAvatarValid() || gAgentAvatarp->isDead())
|
||||
{
|
||||
gAgentCamera.changeCameraToDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
avatarp->stopMotion( ANIM_AGENT_BODY_NOISE );
|
||||
avatarp->mSpecialRenderMode = 3;
|
||||
gAgentAvatarp->stopMotion( ANIM_AGENT_BODY_NOISE );
|
||||
gAgentAvatarp->mSpecialRenderMode = 3;
|
||||
|
||||
// set up camera for close look at avatar
|
||||
mOldCameraNearClip = LLViewerCamera::getInstance()->getNear();
|
||||
@@ -113,11 +112,10 @@ void LLMorphView::shutdown()
|
||||
{
|
||||
LLVOAvatar::onCustomizeEnd();
|
||||
|
||||
LLVOAvatar *avatarp = gAgentAvatarp;
|
||||
if(avatarp && !avatarp->isDead())
|
||||
if (isAgentAvatarValid())
|
||||
{
|
||||
avatarp->startMotion( ANIM_AGENT_BODY_NOISE );
|
||||
avatarp->mSpecialRenderMode = 0;
|
||||
gAgentAvatarp->startMotion( ANIM_AGENT_BODY_NOISE );
|
||||
gAgentAvatarp->mSpecialRenderMode = 0;
|
||||
// reset camera
|
||||
LLViewerCamera::getInstance()->setNear(mOldCameraNearClip);
|
||||
}
|
||||
@@ -167,14 +165,10 @@ void LLMorphView::updateCamera()
|
||||
if (!mCameraTargetJoint)
|
||||
{
|
||||
setCameraTargetJoint(gAgentAvatarp->getJoint("mHead"));
|
||||
}
|
||||
|
||||
LLVOAvatar* avatar = gAgentAvatarp;
|
||||
if( !avatar )
|
||||
{
|
||||
return;
|
||||
}
|
||||
LLJoint* root_joint = avatar->getRootJoint();
|
||||
}
|
||||
if (!isAgentAvatarValid()) return;
|
||||
|
||||
LLJoint* root_joint = gAgentAvatarp->getRootJoint();
|
||||
if( !root_joint )
|
||||
{
|
||||
return;
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#ifndef LL_LLPREVIEW_H
|
||||
#define LL_LLPREVIEW_H
|
||||
|
||||
#include "llfloater.h"
|
||||
#include "llmultifloater.h"
|
||||
#include "llresizehandle.h"
|
||||
#include "llmap.h"
|
||||
#include "lluuid.h"
|
||||
|
||||
@@ -3900,8 +3900,7 @@ void process_agent_movement_complete(LLMessageSystem* msg, void**)
|
||||
std::string version_channel;
|
||||
msg->getString("SimData", "ChannelVersion", version_channel);
|
||||
|
||||
LLVOAvatar* avatarp = gAgentAvatarp;
|
||||
if (!avatarp)
|
||||
if (!isAgentAvatarValid())
|
||||
{
|
||||
// Could happen if you were immediately god-teleported away on login,
|
||||
// maybe other cases. Continue, but warn.
|
||||
@@ -3962,7 +3961,7 @@ void process_agent_movement_complete(LLMessageSystem* msg, void**)
|
||||
gAgent.sendAgentSetAppearance();
|
||||
|
||||
// [RLVa:KB] - Checked: 2009-07-04 (RLVa-1.0.0a)
|
||||
if ( (avatarp) && (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) )
|
||||
if ( (gAgentAvatarp) && (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) )
|
||||
// [/RLVa:KB]
|
||||
// if (avatarp)
|
||||
{
|
||||
@@ -3972,9 +3971,9 @@ void process_agent_movement_complete(LLMessageSystem* msg, void**)
|
||||
LLFloaterChat::addChatHistory(chat);
|
||||
|
||||
// Set the new position
|
||||
avatarp->setPositionAgent(agent_pos);
|
||||
avatarp->clearChat();
|
||||
avatarp->slamPosition();
|
||||
gAgentAvatarp->setPositionAgent(agent_pos);
|
||||
gAgentAvatarp->clearChat();
|
||||
gAgentAvatarp->slamPosition();
|
||||
}
|
||||
|
||||
// add teleport destination to the list of visited places
|
||||
@@ -4048,9 +4047,9 @@ void process_agent_movement_complete(LLMessageSystem* msg, void**)
|
||||
gAgent.clearBusy();
|
||||
}
|
||||
|
||||
if (avatarp)
|
||||
if (isAgentAvatarValid())
|
||||
{
|
||||
avatarp->mFootPlane.clearVec();
|
||||
gAgentAvatarp->mFootPlane.clearVec();
|
||||
}
|
||||
|
||||
// send walk-vs-run status
|
||||
|
||||
@@ -168,7 +168,7 @@ BOOL LLVOGround::updateGeometry(LLDrawable *drawable)
|
||||
*(texCoordsp++) = LLVector2(0.f, 1.f);
|
||||
*(texCoordsp++) = LLVector2(0.5f, 0.5f);
|
||||
|
||||
face->getVertexBuffer()->setBuffer(0);
|
||||
face->getVertexBuffer()->flush();
|
||||
LLPipeline::sCompiles++;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
};
|
||||
|
||||
// virtual
|
||||
void setupVertexBuffer(U32 data_mask) const
|
||||
void setupVertexBuffer(U32 data_mask)
|
||||
{
|
||||
if (LLGLSLShader::sNoFixedFunction)
|
||||
{ //just use default if shaders are in play
|
||||
|
||||
Reference in New Issue
Block a user