Skip to content
Snippets Groups Projects
Commit f5f2be46 authored by Feimi Yu's avatar Feimi Yu
Browse files

restrict seproperty to component only

parent abcf1705
No related branches found
No related tags found
No related merge requests found
Pipeline #139426 passed
......@@ -105,7 +105,7 @@ SetProperty::Result SetProperty::operateInternal()
return smtk::model::EntityRef(std::dynamic_pointer_cast<smtk::model::Entity>(obj));
});
if (nameItem->value(0).empty())
if (nameItem->value(0).empty() || entities.empty())
{
return this->createResult(smtk::operation::Operation::Outcome::FAILED);
}
......
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