Skip to content
Snippets Groups Projects
Commit 70d3d349 authored by Lucas Gandel's avatar Lucas Gandel
Browse files

Fix GetMTime calls when renderable is missing

parent ab278e87
No related branches found
No related tags found
No related merge requests found
......@@ -153,6 +153,10 @@ vtkMTimeType vtkOSPRayActorNode::GetMTime()
{
vtkMTimeType mtime = this->Superclass::GetMTime();
vtkActor* act = (vtkActor*)this->GetRenderable();
if (!act)
{
return mtime;
}
if (act->GetMTime() > mtime)
{
mtime = act->GetMTime();
......
......@@ -53,6 +53,11 @@ vtkMTimeType vtkOSPRayVolumeNode::GetMTime()
{
vtkMTimeType mtime = this->Superclass::GetMTime();
vtkVolume* vol = (vtkVolume*)this->GetRenderable();
if (!vol)
{
return mtime;
}
if (vol->GetMTime() > mtime)
{
mtime = vol->GetMTime();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment