Commit 0ba63321 authored by T.J. Corona's avatar T.J. Corona

vtkSMTKModelRepresentation: check for association before using it

parent 39d4d713
......@@ -470,9 +470,13 @@ bool vtkSMTKModelRepresentation::ApplyDefaultStyle(
attr = item.first->as<smtk::attribute::Attribute>();
if (attr)
{
for (auto obj : *attr->associations())
if (attr->associations())
{
atLeastOneSelected |= self->SelectComponentFootprint(obj, /*selnBit TODO*/ 1, renderables);
for (auto obj : *attr->associations())
{
atLeastOneSelected |=
self->SelectComponentFootprint(obj, /*selnBit TODO*/ 1, renderables);
}
}
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment