|
|
|
@ -221,9 +221,7 @@ GeomMorpherController::GeomMorpherController(const Nif::NiMorphData *data)
|
|
|
|
|
|
|
|
|
|
void GeomMorpherController::update(osg::NodeVisitor *nv, osg::Drawable *drawable)
|
|
|
|
|
{
|
|
|
|
|
osgAnimation::MorphGeometry* morphGeom = dynamic_cast<osgAnimation::MorphGeometry*>(drawable);
|
|
|
|
|
if (morphGeom)
|
|
|
|
|
{
|
|
|
|
|
osgAnimation::MorphGeometry* morphGeom = static_cast<osgAnimation::MorphGeometry*>(drawable);
|
|
|
|
|
if (hasInput())
|
|
|
|
|
{
|
|
|
|
|
if (mKeyFrames.size() <= 1)
|
|
|
|
@ -243,7 +241,6 @@ void GeomMorpherController::update(osg::NodeVisitor *nv, osg::Drawable *drawable
|
|
|
|
|
|
|
|
|
|
morphGeom->transformSoftwareMethod();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UVController::UVController()
|
|
|
|
|
{
|
|
|
|
|