Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
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
JennaHuntsman
XDG Integration
Commits
acf36ae8
Commit
acf36ae8
authored
7 years ago
by
Nat Goodspeed
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-7081: Hack to allow overriding asset capability URL.
parent
1d79b382
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llviewerregion.cpp
+22
-0
22 additions, 0 deletions
indra/newview/llviewerregion.cpp
with
22 additions
and
0 deletions
indra/newview/llviewerregion.cpp
+
22
−
0
View file @
acf36ae8
...
...
@@ -2961,6 +2961,17 @@ void LLViewerRegion::setCapability(const std::string& name, const std::string& u
mImpl
->
mCapabilities
[
name
]
=
url
;
if
(
name
==
"ViewerAsset"
)
{
/*==============================================================*/
// The following inserted lines are a hack for testing MAINT-7081,
// which is why the indentation and formatting are left ugly.
const
char
*
VIEWERASSET
=
getenv
(
"VIEWERASSET"
);
if
(
VIEWERASSET
)
{
mImpl
->
mCapabilities
[
name
]
=
VIEWERASSET
;
mViewerAssetUrl
=
VIEWERASSET
;
}
else
/*==============================================================*/
mViewerAssetUrl
=
url
;
}
}
...
...
@@ -2974,6 +2985,17 @@ void LLViewerRegion::setCapabilityDebug(const std::string& name, const std::stri
mImpl
->
mSecondCapabilitiesTracker
[
name
]
=
url
;
if
(
name
==
"ViewerAsset"
)
{
/*==============================================================*/
// The following inserted lines are a hack for testing MAINT-7081,
// which is why the indentation and formatting are left ugly.
const
char
*
VIEWERASSET
=
getenv
(
"VIEWERASSET"
);
if
(
VIEWERASSET
)
{
mImpl
->
mSecondCapabilitiesTracker
[
name
]
=
VIEWERASSET
;
mViewerAssetUrl
=
VIEWERASSET
;
}
else
/*==============================================================*/
mViewerAssetUrl
=
url
;
}
}
...
...
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