Skip to content
Snippets Groups Projects
Commit 1a8d917a authored by Tofu Linden's avatar Tofu Linden
Browse files

lame-but-effective workaround for self-editing UI bug, until the right fix is ready.

parent a1d01029
No related branches found
No related tags found
No related merge requests found
......@@ -895,7 +895,9 @@ LLVector3 LLRender::getUITranslation()
{
if (mUIOffset.empty())
{
llerrs << "UI offset stack empty." << llendl;
//llassert(!mUIOffset.empty());
llwarns << "UI offset stack empty." << llendl;
return LLVector3(0,0,0);
}
return mUIOffset.back();
}
......@@ -904,7 +906,9 @@ LLVector3 LLRender::getUIScale()
{
if (mUIScale.empty())
{
llerrs << "UI scale stack empty." << llendl;
//llassert(!mUIScale.empty());
llwarns << "UI scale stack empty." << llendl;
return LLVector3(1,1,1);
}
return mUIScale.back();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment