diff options
author | andreykproductengine <akleshchev@productengine.com> | 2014-10-03 19:42:34 +0300 |
---|---|---|
committer | andreykproductengine <akleshchev@productengine.com> | 2014-10-03 19:42:34 +0300 |
commit | 16e35c5913086e1bef26a650bd60319d5a97d51f (patch) | |
tree | 29102f8624bfe151d0a294112f60d41e64c4534c /indra/newview | |
parent | a25748e11ea59d72f8190373be5b8930288d4744 (diff) |
MAINT-3959 FIXED Prim size reverting to default size when scaled down and shift copied
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/llpanelobject.cpp | 6 | ||||
-rwxr-xr-x | indra/newview/llpanelobject.h | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llpanelobject.cpp b/indra/newview/llpanelobject.cpp index 9123252f4c..2fece32449 100755 --- a/indra/newview/llpanelobject.cpp +++ b/indra/newview/llpanelobject.cpp @@ -285,7 +285,8 @@ LLPanelObject::LLPanelObject() mIsPhantom(FALSE), mSelectedType(MI_BOX), mSculptTextureRevert(LLUUID::null), - mSculptTypeRevert(0) + mSculptTypeRevert(0), + mSizeChanged(FALSE) { } @@ -1620,9 +1621,10 @@ void LLPanelObject::sendScale(BOOL btn_down) LLVector3 newscale(mCtrlScaleX->get(), mCtrlScaleY->get(), mCtrlScaleZ->get()); LLVector3 delta = newscale - mObject->getScale(); - if (delta.magVec() >= 0.0005f) + if (delta.magVec() >= 0.0005f || (mSizeChanged && !btn_down)) { // scale changed by more than 1/2 millimeter + mSizeChanged = btn_down; // check to see if we aren't scaling the textures // (in which case the tex coord's need to be recomputed) diff --git a/indra/newview/llpanelobject.h b/indra/newview/llpanelobject.h index c4cf27ab1a..8829f493fa 100755 --- a/indra/newview/llpanelobject.h +++ b/indra/newview/llpanelobject.h @@ -140,6 +140,7 @@ protected: LLSpinCtrl* mCtrlScaleX; LLSpinCtrl* mCtrlScaleY; LLSpinCtrl* mCtrlScaleZ; + BOOL mSizeChanged; LLTextBox* mLabelRotation; LLSpinCtrl* mCtrlRotX; |