|
|
|
|
|
|
{ |
|
|
|
property.useCustomReferenceName = m_UseCustomReferenceNameToggle.on; |
|
|
|
m_ReferenceNameField.SetEnabled(property.useCustomReferenceName); |
|
|
|
m_Graph.ValidateGraph(); |
|
|
|
m_ReferenceNameField.value = property.referenceName; |
|
|
|
DirtyNodes(ModificationScope.Graph); |
|
|
|
m_ReferenceNameField.value = property.customReferenceName; |
|
|
|
m_ReferenceNameField.value = property.referenceName; |
|
|
|
if (!property.useCustomReferenceName) |
|
|
|
return; |
|
|
|
DirtyNodes(ModificationScope.Graph); |
|
|
|
}); |
|
|
|
AddRow("Specify reference name", m_UseCustomReferenceNameToggle); |
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void DirtyNodes() |
|
|
|
void DirtyNodes(ModificationScope modificationScope = ModificationScope.Node) |
|
|
|
node.Dirty(ModificationScope.Node); |
|
|
|
node.Dirty(modificationScope); |
|
|
|
} |
|
|
|
} |
|
|
|
} |