Updates osgAnimation

This updates is mainly for the gles plugint to work correctly.

* adds Quaternion array
* reintroduces `KeyframeContainer::linearInterpolationDeduplicate`
* fixes MorphGeometry OSG serialization (target names)
This commit is contained in:
Marc Helbling
2016-07-01 17:04:09 +02:00
parent 7c0c98b504
commit 43443928d0
6 changed files with 50 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ osg::BoundingBox RigComputeBoundingBoxCallback::computeBound(const osg::Drawable
{
const osgAnimation::RigGeometry& rig = dynamic_cast<const osgAnimation::RigGeometry&>(drawable);
// if a valid inital bounding box is set we use it without asking more
// if a valid initial bounding box is set we use it without asking more
if (rig.getInitialBound().valid())
return rig.getInitialBound();

View File

@@ -11,6 +11,7 @@ REGISTER_OBJECT_WRAPPER( osgAnimation_UpdateMorph,
osgAnimation::UpdateMorph,
"osg::Object osg::Callback osg::NodeCallback osgAnimation::UpdateMorph" )
{
ADD_VECTOR_SERIALIZER( TargetNames, osgAnimation::UpdateMorph::TargetNames, osgDB::BaseSerializer::RW_STRING, 1 );
}
#undef OBJECT_CAST