FIRE-7719: Fix for paste vector from clipboard doesn't work properly

Ansariel 2012-09-19 22:26:31 +02:00
parent 27c084812f
commit 8d010809f6
1 changed files with 21 additions and 0 deletions

View File

@ -2479,17 +2479,38 @@ BOOL get_vector_from_clipboard(LLVector3* value)
void LLPanelObject::onPastePosClip(const LLSD& data)
{
if(get_vector_from_clipboard(&mClipboardPos))
{
mHasPosClipboard = TRUE;
onPastePos(data);
}
else
{
llinfos << "Couldn't get position vector from clipboard" << llendl;
}
}
void LLPanelObject::onPasteSizeClip(const LLSD& data)
{
if(get_vector_from_clipboard(&mClipboardSize))
{
mHasSizeClipboard = TRUE;
onPasteSize(data);
}
else
{
llinfos << "Couldn't get size vector from clipboard" << llendl;
}
}
void LLPanelObject::onPasteRotClip(const LLSD& data)
{
if(get_vector_from_clipboard(&mClipboardRot))
{
mHasRotClipboard = TRUE;
onPasteRot(data);
}
else
{
llinfos << "Couldn't get rotation vector from clipboard" << llendl;
}
}