Commit 8c56bc7d authored by Aron Helser's avatar Aron Helser
Browse files

Allow creation of Signal op.

parent 040c31e8
......@@ -49,10 +49,14 @@ ComponentPhraseContent::Ptr ComponentPhraseContent::setup(
{
m_component = component;
m_rawComponent = component.get();
if (!m_rawComponent)
if (m_rawComponent)
{
m_rawResource = m_rawComponent->resource().get();
}
else
{
m_rawResource = nullptr;
}
m_mutability = mutability;
return shared_from_this();
}
......
......@@ -195,7 +195,7 @@ int unitBadge(int argc, char* argv[])
// create a Signal operation that will let Observers know that an
// attribute was created, modified, or removed.
//smtk::plugin::addToManagers<smtk::attribute::Registrar>(operationManager);
smtk::attribute::Registrar::registerTo(operationManager);
smtk::operation::InternalGroup(operationManager).registerOperation<smtk::attribute::Signal>();
auto signalOp = operationManager->create<smtk::attribute::Signal>();
if (signalOp)
......
Supports Markdown
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