Fixed typo

This commit is contained in:
Robert Osfield 2017-11-13 13:08:39 +00:00
parent 9c605ba9be
commit 49a5fdbd1f

View File

@ -15,7 +15,7 @@ struct BasicAnimationManagerIsplaying : public osgDB::MethodObject
osgAnimation::Animation* child = dynamic_cast<osgAnimation::Animation*>(inputParameters[0].get()); osgAnimation::Animation* child = dynamic_cast<osgAnimation::Animation*>(inputParameters[0].get());
if (!child) return false; if (!child) return false;
osgAnimation::BasicAnimationManager* group = dynamic_cast<osgAnimation::BasicAnimationManager*>(reinterpret_cast<osg::Object*>(objectPtr)); osgAnimation::BasicAnimationManager* group = dynamic_cast<osgAnimation::BasicAnimationManager*>(reinterpret_cast<osg::Object*>(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; return true;
} }
}; };
@ -28,7 +28,7 @@ struct BasicAnimationManagerfindAnimation : public osgDB::MethodObject
osgAnimation::Animation* child = dynamic_cast<osgAnimation::Animation*>(inputParameters[0].get()); osgAnimation::Animation* child = dynamic_cast<osgAnimation::Animation*>(inputParameters[0].get());
if (!child) return false; if (!child) return false;
osgAnimation::BasicAnimationManager* group = dynamic_cast<osgAnimation::BasicAnimationManager*>(reinterpret_cast<osg::Object*>(objectPtr)); osgAnimation::BasicAnimationManager* group = dynamic_cast<osgAnimation::BasicAnimationManager*>(reinterpret_cast<osg::Object*>(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; return true;
} }
}; };
@ -41,7 +41,7 @@ struct BasicAnimationManagerPlayanimation : public osgDB::MethodObject
osgAnimation::Animation* child = dynamic_cast<osgAnimation::Animation*>(inputParameters[0].get()); osgAnimation::Animation* child = dynamic_cast<osgAnimation::Animation*>(inputParameters[0].get());
if (!child) return false; if (!child) return false;
osgAnimation::BasicAnimationManager* group = dynamic_cast<osgAnimation::BasicAnimationManager*>(reinterpret_cast<osg::Object*>(objectPtr)); osgAnimation::BasicAnimationManager* group = dynamic_cast<osgAnimation::BasicAnimationManager*>(reinterpret_cast<osg::Object*>(objectPtr));
id (group) group->playAnimation(child); if (group) group->playAnimation(child);
return true; return true;
} }
}; };
@ -54,7 +54,7 @@ struct BasicAnimationManagerStopanimation : public osgDB::MethodObject
osgAnimation::Animation* child = dynamic_cast<osgAnimation::Animation*>(inputParameters[0].get()); osgAnimation::Animation* child = dynamic_cast<osgAnimation::Animation*>(inputParameters[0].get());
if (!child) return false; if (!child) return false;
osgAnimation::BasicAnimationManager* group = dynamic_cast<osgAnimation::BasicAnimationManager*>(reinterpret_cast<osg::Object*>(objectPtr)); osgAnimation::BasicAnimationManager* group = dynamic_cast<osgAnimation::BasicAnimationManager*>(reinterpret_cast<osg::Object*>(objectPtr));
id (group) group->stopAnimation(child); if (group) group->stopAnimation(child);
return true; return true;
} }
}; };