Fix 'Open floater in Freeze Time mode'
When the floater was opened in Freeze Time mode, then parent of the widget that triggers it to open is the 'Floater View'. We do NOT want to set that MouseOpaque :p. Using getParent here is just nonsense.
This commit is contained in:
@@ -1688,8 +1688,8 @@ void LLFloaterSnapshot::Impl::freezeTime(bool on)
|
||||
LLSnapshotLivePreview* previewp = getPreviewView();
|
||||
if (on)
|
||||
{
|
||||
// stop all mouse events at fullscreen preview layer
|
||||
sInstance->getParent()->setMouseOpaque(TRUE);
|
||||
// Stop all mouse events at fullscreen preview layer.
|
||||
gSnapshotFloaterView->setMouseOpaque(TRUE);
|
||||
|
||||
// can see and interact with fullscreen preview now
|
||||
if (previewp)
|
||||
@@ -1716,7 +1716,8 @@ void LLFloaterSnapshot::Impl::freezeTime(bool on)
|
||||
}
|
||||
else // turning off freeze frame mode
|
||||
{
|
||||
sInstance->getParent()->setMouseOpaque(FALSE);
|
||||
gSnapshotFloaterView->setMouseOpaque(FALSE);
|
||||
|
||||
if (previewp)
|
||||
{
|
||||
previewp->setVisible(FALSE);
|
||||
|
||||
Reference in New Issue
Block a user