diff --git a/src/osgWrappers/serializers/osgAnimation/BasicAnimationManager.cpp b/src/osgWrappers/serializers/osgAnimation/BasicAnimationManager.cpp index 8cb63e2d3..e69869b5a 100644 --- a/src/osgWrappers/serializers/osgAnimation/BasicAnimationManager.cpp +++ b/src/osgWrappers/serializers/osgAnimation/BasicAnimationManager.cpp @@ -15,7 +15,7 @@ struct BasicAnimationManagerIsplaying : public osgDB::MethodObject osgAnimation::Animation* child = dynamic_cast(inputParameters[0].get()); if (!child) return false; osgAnimation::BasicAnimationManager* group = dynamic_cast(reinterpret_cast(objectPtr)); - id (group) outputParameters.push_back(new osg::BoolValueObject("return", group->isPlaying(child))); + if (group) outputParameters.push_back(new osg::BoolValueObject("return", group->isPlaying(child))); return true; } }; @@ -28,7 +28,7 @@ struct BasicAnimationManagerfindAnimation : public osgDB::MethodObject osgAnimation::Animation* child = dynamic_cast(inputParameters[0].get()); if (!child) return false; osgAnimation::BasicAnimationManager* group = dynamic_cast(reinterpret_cast(objectPtr)); - id (group) outputParameters.push_back(new osg::BoolValueObject("return",group->findAnimation(child))); + if (group) outputParameters.push_back(new osg::BoolValueObject("return",group->findAnimation(child))); return true; } }; @@ -41,7 +41,7 @@ struct BasicAnimationManagerPlayanimation : public osgDB::MethodObject osgAnimation::Animation* child = dynamic_cast(inputParameters[0].get()); if (!child) return false; osgAnimation::BasicAnimationManager* group = dynamic_cast(reinterpret_cast(objectPtr)); - id (group) group->playAnimation(child); + if (group) group->playAnimation(child); return true; } }; @@ -54,7 +54,7 @@ struct BasicAnimationManagerStopanimation : public osgDB::MethodObject osgAnimation::Animation* child = dynamic_cast(inputParameters[0].get()); if (!child) return false; osgAnimation::BasicAnimationManager* group = dynamic_cast(reinterpret_cast(objectPtr)); - id (group) group->stopAnimation(child); + if (group) group->stopAnimation(child); return true; } };