merge
commit
7df20f1315
|
|
@ -135,7 +135,7 @@ class LL_COMMON_API LLMutex
|
|||
{
|
||||
public:
|
||||
LLMutex(apr_pool_t *apr_poolp); // NULL pool constructs a new pool for the mutex
|
||||
~LLMutex();
|
||||
virtual ~LLMutex();
|
||||
|
||||
void lock(); // blocks
|
||||
void unlock();
|
||||
|
|
|
|||
|
|
@ -135,6 +135,7 @@ BOOL LLImagePNG::encode(const LLImageRaw* raw_image, F32 encode_time)
|
|||
if (! pngWrapper.writePng(raw_image, mTmpWriteBuffer))
|
||||
{
|
||||
setLastError(pngWrapper.getErrorMessage());
|
||||
delete[] mTmpWriteBuffer;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -199,6 +199,7 @@ namespace
|
|||
fileBuffer = new U8 [fileSize];
|
||||
vfile.read(fileBuffer, fileSize);
|
||||
ostream.write((char*)fileBuffer, fileSize);
|
||||
delete [] fileBuffer;
|
||||
eos = true;
|
||||
return STATUS_DONE;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2312,12 +2312,6 @@ void LLAgentCamera::changeCameraToCustomizeAvatar(BOOL avatar_animate, BOOL came
|
|||
startCameraAnimation();
|
||||
}
|
||||
|
||||
// Remove any pitch from the avatar
|
||||
//LLVector3 at = gAgent.getFrameAgent().getAtAxis();
|
||||
//at.mV[VZ] = 0.f;
|
||||
//at.normalize();
|
||||
//gAgent.resetAxes(at);
|
||||
|
||||
if (mCameraMode != CAMERA_MODE_CUSTOMIZE_AVATAR)
|
||||
{
|
||||
updateLastCamera();
|
||||
|
|
@ -2338,9 +2332,11 @@ void LLAgentCamera::changeCameraToCustomizeAvatar(BOOL avatar_animate, BOOL came
|
|||
if (isAgentAvatarValid())
|
||||
{
|
||||
if(avatar_animate)
|
||||
{
|
||||
// Remove any pitch from the avatar
|
||||
LLVector3 at = gAgent.getFrameAgent().getAtAxis();
|
||||
{
|
||||
// slamming the avatar's axis to the camera so that when the rotation
|
||||
// completes it correctly points to the front of the avatar
|
||||
// Remove any pitch or rotation from the avatar
|
||||
LLVector3 at = LLViewerCamera::getInstance()->getAtAxis();
|
||||
at.mV[VZ] = 0.f;
|
||||
at.normalize();
|
||||
gAgent.resetAxes(at);
|
||||
|
|
@ -2360,6 +2356,10 @@ void LLAgentCamera::changeCameraToCustomizeAvatar(BOOL avatar_animate, BOOL came
|
|||
mAnimationDuration = gSavedSettings.getF32("ZoomTime");
|
||||
}
|
||||
}
|
||||
|
||||
// this is what sets the avatar as the mFocusTargetGlobal
|
||||
setFocusGlobal(LLVector3d::zero);
|
||||
|
||||
gAgentAvatarp->updateMeshTextures();
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -352,12 +352,12 @@ void LLSidepanelAppearance::toggleWearableEditPanel(BOOL visible, LLWearable *we
|
|||
|
||||
if (visible)
|
||||
{
|
||||
mEditWearable->setWearable(wearable);
|
||||
mEditWearable->onOpen(LLSD()); // currently no-op, just for consistency
|
||||
if (!disable_camera_switch && gSavedSettings.getBOOL("AppearanceCameraMovement") )
|
||||
{
|
||||
gAgentCamera.changeCameraToCustomizeAvatar();
|
||||
}
|
||||
mEditWearable->setWearable(wearable);
|
||||
mEditWearable->onOpen(LLSD()); // currently no-op, just for consistency
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue