Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
16e35c59
Commit
16e35c59
authored
10 years ago
by
andreykproductengine
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-3959 FIXED Prim size reverting to default size when scaled down and shift copied
parent
a25748e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llpanelobject.cpp
+4
-2
4 additions, 2 deletions
indra/newview/llpanelobject.cpp
indra/newview/llpanelobject.h
+1
-0
1 addition, 0 deletions
indra/newview/llpanelobject.h
with
5 additions
and
2 deletions
indra/newview/llpanelobject.cpp
+
4
−
2
View file @
16e35c59
...
@@ -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.0005
f
)
if
(
delta
.
magVec
()
>=
0.0005
f
||
(
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)
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llpanelobject.h
+
1
−
0
View file @
16e35c59
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment