Exemplo n.º 1
0
//==============================================================================
void EndEffector::copyNodePropertiesTo(
    std::unique_ptr<Node::Properties>& outputProperties) const
{
  if(outputProperties)
  {
    EndEffector::Properties* properties =
        static_cast<EndEffector::Properties*>(outputProperties.get());

    static_cast<Entity::Properties&>(*properties) = getEntityProperties();
    static_cast<UniqueProperties&>(*properties) = mEndEffectorP;
    copyAddonPropertiesTo(properties->mAddonProperties);
  }
  else
  {
    outputProperties = getNodeProperties();
  }
}
Exemplo n.º 2
0
//==============================================================================
void Node::copyNodePropertiesTo(
    std::unique_ptr<Properties>& outputProperties) const
{
  outputProperties = getNodeProperties();
}