Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
iMSTK
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
iMSTK
iMSTK
Commits
5363de10
Commit
5363de10
authored
Jun 02, 2016
by
Alexis Girault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: Check VTK Renderer exists on resetCamera
Was crashing when starting the simulation without interacting first
parent
8e7f4529
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Base/SimulationManager/imstkInteractorStyle.cpp
Base/SimulationManager/imstkInteractorStyle.cpp
+6
-1
No files found.
Base/SimulationManager/imstkInteractorStyle.cpp
View file @
5363de10
...
...
@@ -50,8 +50,13 @@ InteractorStyle::OnTimer()
// Update render delegates
m_simManager
->
getViewer
()
->
getCurrentRenderer
()
->
updateRenderDelegates
();
// Reset camera clipping range
if
(
this
->
CurrentRenderer
!=
nullptr
)
{
this
->
CurrentRenderer
->
ResetCameraClippingRange
();
}
// Render
this
->
CurrentRenderer
->
ResetCameraClippingRange
();
this
->
Interactor
->
Render
();
}
...
...
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