Skip to content
Snippets Groups Projects
Commit 16e35c59 authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-3959 FIXED Prim size reverting to default size when scaled down and shift copied

parent a25748e1
No related branches found
No related tags found
No related merge requests found
...@@ -285,7 +285,8 @@ LLPanelObject::LLPanelObject() ...@@ -285,7 +285,8 @@ LLPanelObject::LLPanelObject()
mIsPhantom(FALSE), mIsPhantom(FALSE),
mSelectedType(MI_BOX), mSelectedType(MI_BOX),
mSculptTextureRevert(LLUUID::null), mSculptTextureRevert(LLUUID::null),
mSculptTypeRevert(0) mSculptTypeRevert(0),
mSizeChanged(FALSE)
{ {
} }
...@@ -1620,9 +1621,10 @@ void LLPanelObject::sendScale(BOOL btn_down) ...@@ -1620,9 +1621,10 @@ void LLPanelObject::sendScale(BOOL btn_down)
LLVector3 newscale(mCtrlScaleX->get(), mCtrlScaleY->get(), mCtrlScaleZ->get()); LLVector3 newscale(mCtrlScaleX->get(), mCtrlScaleY->get(), mCtrlScaleZ->get());
LLVector3 delta = newscale - mObject->getScale(); 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 // scale changed by more than 1/2 millimeter
mSizeChanged = btn_down;
// check to see if we aren't scaling the textures // check to see if we aren't scaling the textures
// (in which case the tex coord's need to be recomputed) // (in which case the tex coord's need to be recomputed)
......
...@@ -140,6 +140,7 @@ class LLPanelObject : public LLPanel ...@@ -140,6 +140,7 @@ class LLPanelObject : public LLPanel
LLSpinCtrl* mCtrlScaleX; LLSpinCtrl* mCtrlScaleX;
LLSpinCtrl* mCtrlScaleY; LLSpinCtrl* mCtrlScaleY;
LLSpinCtrl* mCtrlScaleZ; LLSpinCtrl* mCtrlScaleZ;
BOOL mSizeChanged;
LLTextBox* mLabelRotation; LLTextBox* mLabelRotation;
LLSpinCtrl* mCtrlRotX; LLSpinCtrl* mCtrlRotX;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment