Prevent circumventing @viewtexture RLVa restriction via texture preview tooltips
parent
2b0a40696d
commit
0fa7daffbd
|
|
@ -33,6 +33,8 @@
|
|||
#include "lltrans.h"
|
||||
#include "llviewertexturelist.h"
|
||||
|
||||
#include "rlvactions.h"
|
||||
|
||||
|
||||
// ============================================================================
|
||||
// Helper functions
|
||||
|
|
@ -42,6 +44,11 @@ LLToolTip* LLInspectTextureUtil::createInventoryToolTip(LLToolTip::Params p)
|
|||
{
|
||||
const LLSD& sdTooltip = p.create_params;
|
||||
|
||||
// <FS:Ansariel> Texture tooltip RLVa fix
|
||||
if (!RlvActions::canPreviewTextures())
|
||||
return LLUICtrlFactory::create<LLToolTip>(p);
|
||||
// </FS:Ansariel>
|
||||
|
||||
if (sdTooltip.has("thumbnail_id") && sdTooltip["thumbnail_id"].asUUID().notNull())
|
||||
{
|
||||
// go straight for thumbnail regardless of type
|
||||
|
|
|
|||
Loading…
Reference in New Issue