Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
593d6701
Commit
593d6701
authored
10 years ago
by
Mnikolenko ProductEngine
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-4857 FIXED Reset scene monitor after completing teleport.
parent
90e46377
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llscenemonitor.cpp
+16
-0
16 additions, 0 deletions
indra/newview/llscenemonitor.cpp
indra/newview/llscenemonitor.h
+6
-2
6 additions, 2 deletions
indra/newview/llscenemonitor.h
with
22 additions
and
2 deletions
indra/newview/llscenemonitor.cpp
+
16
−
0
View file @
593d6701
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
#include
"llspatialpartition.h"
#include
"llspatialpartition.h"
#include
"llagent.h"
#include
"llagent.h"
#include
"pipeline.h"
#include
"pipeline.h"
#include
"llviewerparcelmgr.h"
#include
"llviewerpartsim.h"
#include
"llviewerpartsim.h"
LLSceneMonitorView
*
gSceneMonitorView
=
NULL
;
LLSceneMonitorView
*
gSceneMonitorView
=
NULL
;
...
@@ -702,6 +703,13 @@ LLSceneMonitorView::LLSceneMonitorView(const LLRect& rect)
...
@@ -702,6 +703,13 @@ LLSceneMonitorView::LLSceneMonitorView(const LLRect& rect)
setCanMinimize
(
false
);
setCanMinimize
(
false
);
setCanClose
(
true
);
setCanClose
(
true
);
sTeleportFinishConnection
=
LLViewerParcelMgr
::
getInstance
()
->
setTeleportFinishedCallback
(
boost
::
bind
(
&
LLSceneMonitorView
::
onTeleportFinished
,
this
));
}
LLSceneMonitorView
::~
LLSceneMonitorView
()
{
sTeleportFinishConnection
.
disconnect
();
}
}
void
LLSceneMonitorView
::
onClose
(
bool
app_quitting
)
void
LLSceneMonitorView
::
onClose
(
bool
app_quitting
)
...
@@ -714,6 +722,14 @@ void LLSceneMonitorView::onClickCloseBtn(bool app_quitting)
...
@@ -714,6 +722,14 @@ void LLSceneMonitorView::onClickCloseBtn(bool app_quitting)
setVisible
(
false
);
setVisible
(
false
);
}
}
void
LLSceneMonitorView
::
onTeleportFinished
()
{
if
(
isInVisibleChain
())
{
LLSceneMonitor
::
getInstance
()
->
reset
();
}
}
void
LLSceneMonitorView
::
onVisibilityChange
(
BOOL
visible
)
void
LLSceneMonitorView
::
onVisibilityChange
(
BOOL
visible
)
{
{
if
(
!
LLGLSLShader
::
sNoFixedFunction
&&
visible
)
if
(
!
LLGLSLShader
::
sNoFixedFunction
&&
visible
)
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llscenemonitor.h
+
6
−
2
View file @
593d6701
...
@@ -64,10 +64,12 @@ class LLSceneMonitor : public LLSingleton<LLSceneMonitor>
...
@@ -64,10 +64,12 @@ class LLSceneMonitor : public LLSingleton<LLSceneMonitor>
void
dumpToFile
(
std
::
string
file_name
);
void
dumpToFile
(
std
::
string
file_name
);
bool
hasResults
()
const
{
return
mSceneLoadRecording
.
getResults
().
getDuration
()
!=
S32Seconds
(
0
);}
bool
hasResults
()
const
{
return
mSceneLoadRecording
.
getResults
().
getDuration
()
!=
S32Seconds
(
0
);}
void
reset
();
private
:
private
:
void
freezeScene
();
void
freezeScene
();
void
unfreezeScene
();
void
unfreezeScene
();
void
reset
();
LLRenderTarget
&
getCaptureTarget
();
LLRenderTarget
&
getCaptureTarget
();
void
generateDitheringTexture
(
S32
width
,
S32
height
);
void
generateDitheringTexture
(
S32
width
,
S32
height
);
...
@@ -109,7 +111,7 @@ class LLSceneMonitorView : public LLFloater
...
@@ -109,7 +111,7 @@ class LLSceneMonitorView : public LLFloater
{
{
public:
public:
LLSceneMonitorView
(
const
LLRect
&
rect
);
LLSceneMonitorView
(
const
LLRect
&
rect
);
~
LLSceneMonitorView
();
virtual
void
draw
();
virtual
void
draw
();
virtual
void
onVisibilityChange
(
BOOL
visible
);
virtual
void
onVisibilityChange
(
BOOL
visible
);
...
@@ -117,6 +119,8 @@ class LLSceneMonitorView : public LLFloater
...
@@ -117,6 +119,8 @@ class LLSceneMonitorView : public LLFloater
protected:
protected:
virtual
void
onClose
(
bool
app_quitting
=
false
);
virtual
void
onClose
(
bool
app_quitting
=
false
);
virtual
void
onClickCloseBtn
(
bool
app_quitting
=
false
);
virtual
void
onClickCloseBtn
(
bool
app_quitting
=
false
);
void
onTeleportFinished
();
boost
::
signals2
::
connection
sTeleportFinishConnection
;
};
};
extern
LLSceneMonitorView
*
gSceneMonitorView
;
extern
LLSceneMonitorView
*
gSceneMonitorView
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment