EGADS - last checkin to wrong branch. undone.
parent
995a5bc46a
commit
d2a2b7fd55
|
|
@ -5371,8 +5371,12 @@ void LLPickInfo::updateXYCoords()
|
|||
LLPointer<LLViewerImage> imagep = gImageList.getImage(tep->getID());
|
||||
if(mUVCoords.mV[VX] >= 0.f && mUVCoords.mV[VY] >= 0.f && imagep.notNull())
|
||||
{
|
||||
mXYCoords.mX = llround(mUVCoords.mV[VX] * (F32)imagep->getWidth());
|
||||
mXYCoords.mY = llround((1.f - mUVCoords.mV[VY]) * (F32)imagep->getHeight());
|
||||
LLCoordGL coords;
|
||||
|
||||
coords.mX = llround(mUVCoords.mV[VX] * (F32)imagep->getWidth());
|
||||
coords.mY = llround(mUVCoords.mV[VY] * (F32)imagep->getHeight());
|
||||
|
||||
gViewerWindow->getWindow()->convertCoords(coords, &mXYCoords);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue