Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
725b99fd
Commit
725b99fd
authored
Jan 28, 2014
by
Sebastian Eichelbaum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX
#326
] module did not remove its render node, causing a crash on removal.
parent
ca6ca607
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/modules/template/WMTemplate.cpp
src/modules/template/WMTemplate.cpp
+4
-0
No files found.
src/modules/template/WMTemplate.cpp
View file @
725b99fd
...
...
@@ -750,6 +750,10 @@ void WMTemplate::moduleMain()
// * stop any pending threads you may have started earlier
// * ...
// NOTE: as the module gets disconnected prior to shutdown, most of the cleanup should have been done already.
// Remove the geometry from the scene. If it has never been added, this call does nothing. Always remember to remove your rendering at the
// end of the module loop.
WKernel
::
getRunningKernel
()
->
getGraphicsEngine
()
->
getScene
()
->
remove
(
m_rootNode
);
}
void
WMTemplate
::
SafeUpdateCallback
::
operator
()(
osg
::
Node
*
node
,
osg
::
NodeVisitor
*
nv
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment