1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Function: ProcessOldVersions
Declaration: virtual void ProcessOldVersions(DataNode *parentNode, const char *configVersion);
Definition:
// ****************************************************************************
// Method: AnimationAttributes::ProcessOldVersions
//
// Purpose:
// This method creates modifies a DataNode representation of the object
// so it conforms to the newest representation of the object, which can
// can be read back in.
//
// Programmer: Kathleen Bonnell
// Creation: January 12, 2005
//
// Modifications:
//
// ****************************************************************************
void
AnimationAttributes::ProcessOldVersions(DataNode *parentNode,
const char *configVersion)
{
if(parentNode == 0)
return;
DataNode *searchNode = parentNode->GetNode("AnimationAttributes");
if(searchNode == 0)
return;
DataNode *pcNode = searchNode->GetNode("pipelineCachingMode");
if (pcNode == 0)
return;
if (VersionLessThan(configVersion, "1.1.5"))
searchNode->RemoveNode("pipelineCachingMode");
}
|