Added region="$xmin $ymin $zmin $xmax $ymax $zmax" support to <model> tag, along with animation support via the <property_animation> support.

This commit is contained in:
Robert Osfield
2012-12-20 12:14:53 +00:00
parent 0aef0c2f20
commit 6d0e1bd50b
3 changed files with 117 additions and 3 deletions

View File

@@ -832,6 +832,12 @@ bool ReaderWriterP3DXML::getProperties(osgDB::XmlNode*cur, osgPresentation::Slid
OSG_NOTIFY(_notifyLevel)<<"in getProperties(ModelData)"<<std::endl;
if (getProperty(cur, "region", value.region))
{
propertiesRead = true;
OSG_NOTIFY(_notifyLevel)<<"read region \""<<value.region<<"\""<<std::endl;
}
if (getProperty(cur, "effect", value.effect))
{
propertiesRead = true;