Commit Graph

75 Commits (f3fa991d2ccfb5ff969edbd77b9c6b2d5010fb45)

Author SHA1 Message Date
Ansariel 207a817dfe We love whitespace - yes we do! (And the LLCachedControl is super pointless here...) 2023-01-14 14:07:56 +01:00
Ansariel 603e04ee3c Merge branch 'DRTVWR-540-maint' of https://bitbucket.org/lindenlab/viewer 2021-08-24 13:18:55 +02:00
Andrey Kleshchev ed14e35a06 SL-15794 Rapidly clicking objects or attachments triggers teleport
All doubleclicks should be treated as clicks in scope of editor
2021-08-10 23:48:38 +03:00
Andrey Kleshchev 0814ba3322 SL-443 Keybindings: Support reassigment of script interaction button 2021-07-15 18:50:44 +03:00
Ansariel 3adc5c2b50 Merge viewer-neko 2019-03-26 19:15:36 +01:00
andreykproductengine 9bcd60d085 SL-10562 Animesh objects can be made difficult to select 2019-02-27 18:16:10 +02:00
Ansariel e2b86ee754 Merge viewer-lynx 2016-12-05 21:56:45 +01:00
AndreyL ProductEngine 84c546182c Backed out changeset: ffffbe002ff2
Finally reverting the MAINT-4488 (see BUG-37693 for details)
2016-12-05 19:21:11 +02:00
Ansariel 16acd2d20a Merge Firestorm LGPL 2016-12-04 14:05:44 +01:00
Ansariel 887d03b58c Backed out changeset: e7b4616bb3fa 2016-12-02 21:36:45 +01:00
Ansariel aa25acc045 Merge Firestorm LGPL 2016-11-30 09:43:52 +01:00
Ansariel c182741596 Merge viewer-lynx 2016-11-16 09:55:54 +01:00
Ansariel 680dd107bd FIRE-19357: Re-revert MAINT-4488 again to fix FPS weapons 2016-10-19 11:26:43 +02:00
Ansariel 79c0b8a9b5 Merge viewer-bear 2016-10-19 10:56:32 +02:00
Ansariel b1a0627b75 FIRE-17920 / FIRE-19357: Add setting "FSLegacyMouseTakeControl" to switch between old and new behavior (and the different breakages) of llTakeControl 2016-11-23 15:59:22 +01:00
andreykproductengine 881fe0a117 Restored MAINT-4488 (perviosly reverted in MAINT-6242) 2016-10-18 01:29:27 +03:00
Nat Goodspeed d2c3c2f9fe MAINT-5232: Normalize LLSingleton subclasses.
A shocking number of LLSingleton subclasses had public constructors -- and in
several instances, were being explicitly instantiated independently of the
LLSingleton machinery. This breaks the new LLSingleton dependency-tracking
machinery. It seems only fair that if you say you want an LLSingleton, there
should only be ONE INSTANCE!

Introduce LLSINGLETON() and LLSINGLETON_EMPTY_CTOR() macros. These handle the
friend class LLSingleton<whatevah>;
and explicitly declare a private nullary constructor.

To try to enforce the LLSINGLETON() convention, introduce a new pure virtual
LLSingleton method you_must_use_LLSINGLETON_macro() which is, as you might
suspect, defined by the macro. If you declare an LLSingleton subclass without
using LLSINGLETON() or LLSINGLETON_EMPTY_CTOR() in the class body, you can't
instantiate the subclass for lack of a you_must_use_LLSINGLETON_macro()
implementation -- which will hopefully remind the coder.

Trawl through ALL LLSingleton subclass definitions, sprinkling in
LLSINGLETON() or LLSINGLETON_EMPTY_CTOR() as appropriate. Remove all explicit
constructor declarations, public or private, along with relevant 'friend class
LLSingleton<myself>' declarations. Where destructors are declared, move them
into private section as well. Where the constructor was inline but nontrivial,
move out of class body.

Fix several LLSingleton abuses revealed by making ctors/dtors private:

LLGlobalEconomy was both an LLSingleton and the base class for
LLRegionEconomy, a non-LLSingleton. (Therefore every LLRegionEconomy instance
contained another instance of the LLGlobalEconomy "singleton.") Extract
LLBaseEconomy; LLGlobalEconomy is now a trivial subclass of that.
LLRegionEconomy, as you might suspect, now derives from LLBaseEconomy.

LLToolGrab, an LLSingleton, was also explicitly instantiated by
LLToolCompGun's constructor. Extract LLToolGrabBase, explicitly instantiated,
with trivial subclass LLToolGrab, the LLSingleton instance.

(WARNING: LLToolGrabBase methods have an unnerving tendency to go after
LLToolGrab::getInstance(). I DO NOT KNOW what should be the relationship
between the instance in LLToolCompGun and the LLToolGrab singleton instance.)

LLGridManager declared a variant constructor accepting (const std::string&),
with the comment:
// initialize with an explicity grid file for testing.
As there is no evidence of this being called from anywhere, delete it.

LLChicletBar's constructor accepted an optional (const LLSD&). As the LLSD
parameter wasn't used, and as there is no evidence of it being passed from
anywhere, delete the parameter.

LLViewerWindow::shutdownViews() was checking LLNavigationBar::
instanceExists(), then deleting its getInstance() pointer -- leaving a
dangling LLSingleton instance pointer, a land mine if any subsequent code
should attempt to reference it. Use deleteSingleton() instead.

~LLAppViewer() was calling LLViewerEventRecorder::instance() and then
explicitly calling ~LLViewerEventRecorder() on that instance -- leaving the
LLSingleton instance pointer pointing to an allocated-but-destroyed instance.
Use deleteSingleton() instead.
2016-09-15 20:18:12 -04:00
andreykproductengine d3da3239d1 Backed out changeset: 6d631b9d02a0 for maint-6242 2016-08-22 20:57:22 +03:00
andreykproductengine f69e82b584 Backed out changeset: 6d631b9d02a0 for maint-6242 2016-08-22 20:57:22 +03:00
Ansariel d171e16c58 Merge Firestorm LGPL 2016-03-18 10:16:25 +01:00
Oz Linden 31f3db0291 merge changes for DRTVWR-417 2016-03-16 13:08:06 -04:00
Ansariel 3192fe832f Merge viewer-quickgraphics 2016-03-08 01:41:31 +01:00
Ansariel e7ade840e4 Merge viewer-bear 2016-01-24 14:00:30 +01:00
Oz Linden bc22e58743 merge changes for 4.0.1-release 2016-01-15 16:55:04 -05:00
andreykproductengine c9c6966364 MAINT-4488 [PUBLIC] llTakeControls(*,FALSE,TRUE) prevents left clicks from mouselook. 2016-01-06 20:28:44 +02:00
Ansariel 57f139b608 Merge viewer-bear 2015-12-03 09:41:20 +01:00
AndreyL ProductEngine 749a0266ba MAINT-5892 Added the comments to the function parameters 2015-11-24 18:27:45 +02:00
Oz Linden c8726aba30 remove execute permission from many files that should not have it 2015-11-10 09:48:56 -05:00
Nicky 006190f2a1 Merge with tools update. 2015-05-05 13:09:27 +02:00
Ansariel 48fc17d6e1 Merge LL V3.7.16 2015-01-14 17:36:30 +01:00
callum_linden 577a3973ea Update to build on Xcode 6.0: Large (and final) collection of fixes for unused variables, unused const-variables, unused member variables & functions etc. Also removed flags from CMake 2014-10-20 14:00:39 -07:00
maksymsproductengine 8f429fac24 MAINT-2953 FIXED When "Inspect Objects" floater has focus you cannot move the camera with ALT+Zoom or CTRL+ALT+Zoom 2014-07-07 22:44:04 +03:00
Ansariel 8624a24844 FIRE-14573: Add option to disable leaving mouselook using the scroll wheel 2014-09-11 21:36:45 +02:00
Ansariel d4baa0d62d Clean up LLToolCompGun::handleScrollWheel() 2014-09-11 21:25:27 +02:00
Tank_Master 3d1ac7c0ec Merge LL 3.7.3 (Viewer-Bear fixes) 2014-03-17 14:14:15 -07:00
maksymsproductengine 1033c9d67f MAINT-3555 crash in LLPanel::~LLPanel() on shutdown:
- memory leaks fixing;
2014-02-05 20:45:09 +02:00
maksymsproductengine e6c85c46c4 MAINT-3555 crash in LLPanel::~LLPanel() on shutdown:
- memory leaks fixing;
2014-02-05 20:45:09 +02:00
Oz Linden ddd5659f81 merge changes for DRTVWR-294 2013-04-19 10:11:29 -04:00
Graham Madarasz bf6182daa8 Update Mac and Windows breakpad builds to latest 2013-03-29 07:50:08 -07:00
Tank_Master d4640277d0 Merge LL 3.5.3 release. 2013-07-09 16:24:58 -07:00
Don Kjer c06c35609c Updating linux build to gcc4.6 2012-10-11 00:09:04 +00:00
Tank_Master 6207030884 Merge FS LGPL tip 2013-02-23 17:09:53 -08:00
Ansariel 66ac7f0603 FIRE-9318: Added option for pie/context menus in mouselook mode (ALT + right mouse button) 2013-02-23 19:55:36 +01:00
Tank_Master ea86bb88c3 first pass merge 2013-02-04 10:52:32 -08:00
ziree b28d57c3fd Changed texture grabbing to use only the left mouse button. 2012-03-28 21:49:25 +02:00
ziree 6a66b83a92 First implementation of middle-mouse dragging of texture faces. 2012-03-28 17:20:22 +02:00
ziree d083249aa5 Added Middle Mouse control to scale manipulator to invert uniform scaling. 2012-03-26 02:51:38 +02:00
Liny beff969c30 EOL changes, no code changes. 2012-02-20 15:54:20 -08:00
Selo ed3aaf932f Fixes for the Rightclick mousewheel Zoom by Chalice Yao, NaCL 2011-10-04 00:32:05 +02:00
Selo b538c41018 Added NaCl version of rightclick-mousewheel-zoom for mouselook. From Charlice Yao, NaCl 2011-09-18 15:25:54 +02:00