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() ...@@ -895,7 +895,9 @@ LLVector3 LLRender::getUITranslation()
{ {
if (mUIOffset.empty()) 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(); return mUIOffset.back();
} }
...@@ -904,7 +906,9 @@ LLVector3 LLRender::getUIScale() ...@@ -904,7 +906,9 @@ LLVector3 LLRender::getUIScale()
{ {
if (mUIScale.empty()) 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(); return mUIScale.back();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment