Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
4e81f192
Commit
4e81f192
authored
Nov 12, 2002
by
Charles Law
Browse files
Protect against reseting camera using bad bounds.
parent
3edec3c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rendering/vtkRenderer.cxx
View file @
4e81f192
...
...
@@ -34,7 +34,7 @@
#include
"vtkTimerLog.h"
#include
"vtkVolume.h"
vtkCxxRevisionMacro
(
vtkRenderer
,
"1.18
8
"
);
vtkCxxRevisionMacro
(
vtkRenderer
,
"1.18
9
"
);
//----------------------------------------------------------------------------
// Needed when we don't use the vtkStandardNewMacro.
...
...
@@ -683,10 +683,11 @@ void vtkRenderer::ResetCamera()
if
(
allBounds
[
0
]
==
VTK_LARGE_FLOAT
)
{
vtkDebugMacro
(
<<
"Cannot reset camera!"
);
return
;
}
this
->
ResetCamera
(
allBounds
);
else
{
this
->
ResetCamera
(
allBounds
);
}
// Here to let parallel/distributed compositing intercept
// and do the right thing.
...
...
@@ -704,10 +705,11 @@ void vtkRenderer::ResetCameraClippingRange()
if
(
allBounds
[
0
]
==
VTK_LARGE_FLOAT
)
{
vtkDebugMacro
(
<<
"Cannot reset camera clipping range!"
);
return
;
}
this
->
ResetCameraClippingRange
(
allBounds
);
else
{
this
->
ResetCameraClippingRange
(
allBounds
);
}
// Here to let parallel/distributed compositing intercept
// and do the right thing.
...
...
Write
Preview
Supports
Markdown
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