Skip to content
  • Robert M. O'Bara's avatar
    Bug: Fix attribute Resources not being properly loaded through a project · b90f3122
    Robert M. O'Bara authored
    Previously reading in the resources of a project used the read mechanism registered with the Resource Manager; however, resources loaded in this way may be processed differently than creating a reader via the operation manager. This happens because the operation manager typically has application-specific data in its ``smtk::common::Managers`` object and it provides this to operations it creates. In the case of attribute resources loaded by the resource manager, evaluators were not properly set while using the ReadResource approach did not have this issue.
    
    These changes allow the ResourceContainer deserialization function to internally call the ReadResource Operation through the use of a operation::Helper which provides an operation::Operation::Key.
    
    Also changed project::Manager::registerProject so that the lambda now sets the newly create Project's resource and operation managers.  This is needed since Project de-serialization now depends on having an Operation Manager.
    b90f3122