Commit Graph

120 Commits (bf8154d447e8a4deecee56bbf9043ecb804b4a06)

Author SHA1 Message Date
Andrey Kleshchev c878a9c696 SL-15403 Crash at LLFloaterTools's setStatusText
On shutdown some floaters reset tools using LLToolMgr::setCurrentToolset and it updates LLFloaterTools, which might be dead by that point
2021-06-16 08:43:27 +02:00
Ansariel cf8172437d Merge viewer-cougar 2018-05-18 10:50:31 +02:00
ruslantproductengine 9d9ca82ac9 MAINT-8348 [LOVE ME RENDER] Edit Rotation Rings Occluded by Mesh Objects
FIXED
2018-05-10 16:26:05 +03:00
Ansariel 0c4c1b5968 Remove deprecated OpenGL QUADS rendering mode 2017-03-04 23:57:37 +01:00
Ansariel e3d5861aa0 Merge viewer-lynx 2017-01-25 11:12:16 +01:00
pavelkproductengine 178e119724 MAINT-7014 [MAINT-RC] Edit arrows are too small with 4k monitor 2017-01-04 20:27:32 +02:00
Oz Linden 950c41d184 merge 4.0.4-release and MAINT-5974 2016-05-06 10:28:42 -04:00
Ansariel 007cb590ba Merge Firestorm LGPL 2016-03-31 18:55:05 +02:00
Ansariel a818913ab3 Add support for AVX2 optimizations (available for Windows only so far) 2016-03-29 15:57:02 +02:00
Ansariel d171e16c58 Merge Firestorm LGPL 2016-03-18 10:16:25 +01:00
Ansariel 3192fe832f Merge viewer-quickgraphics 2016-03-08 01:41:31 +01:00
Ansariel c6eeeeaf43 Merge viewer-bear 2016-02-04 22:41:31 +01:00
andreykproductengine f0e8bc0995 MAINT-1520 FIXED User is able to resize child object and is not able to resize root object when he sits on linked object 2016-02-02 18:50:39 +02:00
Oz Linden c8726aba30 remove execute permission from many files that should not have it 2015-11-10 09:48:56 -05:00
vyacheslavsproductengine 91c45fa3ba MAINT-5207 FIXED (Build: Snap to grid / Grid options broken, object snaps to incorrect Units)
MAINT-5208 FIXED (Grid Lines Changing Scale Depending on Distance from Camera)
2015-06-17 20:02:05 +04:00
vyacheslavsproductengine 76e71aaecf MAINT-5207 FIXED (Build: Snap to grid / Grid options broken, object snaps to incorrect Units)
MAINT-5208 FIXED (Grid Lines Changing Scale Depending on Distance from Camera)
2015-06-17 20:02:05 +04:00
Oz Linden 905431cf60 merge changes for 3.7.25-release 2015-02-24 15:48:28 -05:00
Nicky 006190f2a1 Merge with tools update. 2015-05-05 13:09:27 +02:00
callum_linden 23711c9275 Rename llround(..) to ll_round(..) because of a collision with MS llround (long long round) in VS2013 2014-12-10 08:44:08 -08:00
Tank_Master 22386b18b4 Merge LL 2.7.25 2015-02-24 21:22:32 -08:00
Ansariel 3a9c6e5add Comment out LLManipScale::renderEdges for now due to overeager compiler complaining about array index out of bounds 2015-01-13 19:19:16 +01:00
Ansariel a1fd8230bf Merge LL V3.7.12 2015-01-12 17:56:50 +01:00
Ansariel a45088cb6b Merge LL V3.7.11 2015-01-12 12:54:15 +01:00
callum_linden 2c8a685729 Update to build on Xcode 6.0: removal of an unused variable 2014-10-19 17:19:12 -07:00
Richard Linden e298325bed MAINT-4481 FIX [viewer-lion] Linux build fails due array-bounds issue in llmanipscale.cpp
This was an out of bounds array access on a code path not normally accessed
To test, set debug setting ScaleShowAxes to true, go into build mode, and hold down Ctrl+Shift to scale an object
There should be colored bars along the scale axes, limited to the bounds of the object's extents
2014-09-23 19:12:35 -07:00
Mnikolenko ProductEngine c1fe3a3ed6 MAINT-4433 FIXED Don't start changing scale on first click. 2014-09-18 11:46:36 +03:00
simon 3e6698073c Merge viewer-release and become version 3.7.12 2014-07-07 14:49:45 -07:00
Ricky Curtice 98720c3cec Merge 2014-06-05 06:31:30 -07:00
simon dc4c184696 Merge downstream version 3.7.8 code 2014-05-07 13:19:05 -07:00
simon 250db74bf9 Pull and merge viewer-release as version 3.7.8 2014-05-07 10:56:41 -07:00
Oz Linden a98b4b6bee merge changes for 3.7.7-release 2014-05-07 11:09:04 -04:00
Tank_Master eee47dbf56 Backed out Fire-8882 (broke in recent merge) + code alignment with LL 2014-06-11 12:44:35 -07:00
Tank_Master dc353c205a Merge 2014-06-10 20:27:31 -07:00
Tank_Master 6babf8abd2 Merge LL 3.7.7 2014-06-09 11:29:57 -07:00
Ricky Curtice befc0efde9 STORM-1920 / STORM-2013: Fixed uniform scaling highlighting at half values.
Re-utilized the technique Richard put in the corner drag code.
2014-03-04 20:59:48 -08:00
Ricky Curtice fe2801fc63 STORM-2017: Added translatable help text to rotation.
I chose the camera’s up vector to place the help text as it provided a consistent location on the screen for the user to see the text pop up.

While doing this I realized that the calls to hud_render_utf8text utilized a condition that was guaranteed to be false based on a surrounding if-statement, and so could trivially be replaced with a constant.
Also cleaned out a compiler warning about unused private member variables in llmaniptranslate.  I don’t like warnings and useless code. :P
2014-03-03 21:50:12 -08:00
Jonathan Yap 840e1da8aa STORM-2017 Untranslatable text appears when scaling, or moving objects 2014-03-03 14:08:26 -05:00
Ricky Curtice 3e09cdefff Fixed compile-time errors. My bad.
Serves me right for not waiting through the compile!
2014-03-02 22:06:24 -08:00
Ricky Curtice 2db27d09c1 Better code documentation. 2014-03-02 16:48:25 -08:00
Ricky Curtice bd41d696de STORM-1920: Corrected bug where snap values would highlight that weren’t supposed to be highlighting. Did some more cleanup and documentation.
Also corrected a bug in Richard’s patch that resulted in the object scaling up when the mouse went the opposite direction from the scale.  The issue is that the vector length is an absolute value.  To allow for "negative" results to be found and discarded, I instead used a dot product with a parallel unit vector to get the signed magnitude - or, if you prefer, the mono-dimensional vector.

This bug only surfaced once the code made to actually work as intended in regards to the highlighting.  Turns out that if the snapped value was at 2, any axis that was showing values would highlight its "2" text - and the same for all other values.
To fix this, I used a simple enum and repurposed the property that tracked whether or not the cursor was in a snap regime.  Now it not only tracks whether or not the cursor is in a snap regime, but which one it is in.  This allowed the highlight render code to be able to differentiate which row was supposed to highlight and which did not.

A couple more duplicated math operations were reduced by rearranging the order of some variable definitions.  If at all possible, only do division once.  The result is much cleaner and easier to read code.
Several deprecated vector functions were updated to match their new versions.  If you are going to mark something deprecated, why not just take the time to go through and find all uses and clean it up!?
faceToUnitVector() was cleaned up to use the single-output design, matching cornerToUnitVector().
A mess of trailing whitespace was cleaned out.
Many more LLManipScale private variables are now documented - though I only documented those I understood fully while reading where they were created and how they were used.
2014-03-02 16:28:38 -08:00
Ricky Curtice 871bae45ba STORM-1920: From Richard, fix for scale sliding when mouse goes in the opposite direction of the scale.
I had discovered a set of bugs in the fix he sent me involving when the user decided to move the mouse in the opposite direction.  This fixes the bug where the scale would start sliding around.
2014-03-02 15:49:17 -08:00
Ricky Curtice e8a2d3b73b Merge 2014-03-02 15:42:18 -08:00
Ricky Curtice e0a015920d STORM-1920: Richard fixed and optimized a ton more math.
From Richard: There are a bunch of things I changed...mainly I eliminated all the grid_offset nonsense and instead simply calculate the tick index for the current drag position and use that to generate a snapped position as needed.  I still use approx_equal because I want grid numbers to light up even when they aren't the axis you are currently snapping to.
2014-03-02 14:33:57 -08:00
Richard Linden 0b9eeb02ab MAINT-2059 FIX Corner scaling doesn't highlight distance text
much cleanup of vector math
also made Stretch Both Sides checkbox clickable via label
2014-02-24 18:36:13 -08:00
Ricky Curtice 12dc73c74d Simple variable cleanup.
There was a lot of repeated division that was obscuring meaning, along with a variable that was always identical to another preexisting variable.  This last was probably an archaism, and was just due for removal.
2014-02-22 22:12:34 -08:00
Ricky Curtice 9f4031edff STORM-1920: Documented the meaning of some of the variables involved, built simplest change to solve issue.
The highlighting code assumed that the axis of the scaling movement was aligned with the scale tick marks - e.g. one of the cardinal directions with respect to the OBB of the selection.  This was and is NOT true when dragging from the corner, aka scaling more than one axis at a time.  The solution was to calculate the measured distance by projecting the snapped distance along the snap direction onto the axis of the relevant snap guide.  This gives the correct values, and is nice and clean - both in the change involved, and in the values returned.

However, while the fundamental misunderstanding in the code has been cleaned up by this change, the tick_val variable has so much jitter in the bottom end that the is_approx_equal function doesn’t come true > 98% of the time.  This is the next problem to solve.
2014-02-18 23:20:46 -08:00
Ricky Curtice a060dcfff7 STORM-1920: Math cleanup from Richard Linden. 2014-02-18 23:03:13 -08:00
Richard Linden a347267cf1 cleaned up llmanipscale logic for readability...no change in functionality 2014-02-13 15:35:21 -08:00
Richard Linden e340009fc5 second phase summer cleaning
replace llinfos, lldebugs, etc with new LL_INFOS(), LL_DEBUGS(), etc.
2013-08-09 17:11:19 -07:00
Richard Linden a2e22732f1 Summer cleaning - removed a lot of llcommon dependencies to speed up build times
consolidated most indra-specific constants in llcommon under indra_constants.h
fixed issues with operations on mixed unit types (implicit and explicit)
made LL_INFOS() style macros variadic in order to subsume other logging methods
such as ll_infos
added optional tag output to error recorders
2013-07-30 19:13:45 -07:00