From 49a5fdbd1fd31f88b0f4cf554779a1a7e26e518a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 13 Nov 2017 13:08:39 +0000 Subject: [PATCH] Fixed typo --- .../serializers/osgAnimation/BasicAnimationManager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } };