Fixed typo
This commit is contained in:
parent
9c605ba9be
commit
49a5fdbd1f
@ -15,7 +15,7 @@ struct BasicAnimationManagerIsplaying : public osgDB::MethodObject
|
||||
osgAnimation::Animation* child = dynamic_cast<osgAnimation::Animation*>(inputParameters[0].get());
|
||||
if (!child) return false;
|
||||
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;
|
||||
}
|
||||
};
|
||||
@ -28,7 +28,7 @@ struct BasicAnimationManagerfindAnimation : public osgDB::MethodObject
|
||||
osgAnimation::Animation* child = dynamic_cast<osgAnimation::Animation*>(inputParameters[0].get());
|
||||
if (!child) return false;
|
||||
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;
|
||||
}
|
||||
};
|
||||
@ -41,7 +41,7 @@ struct BasicAnimationManagerPlayanimation : public osgDB::MethodObject
|
||||
osgAnimation::Animation* child = dynamic_cast<osgAnimation::Animation*>(inputParameters[0].get());
|
||||
if (!child) return false;
|
||||
osgAnimation::BasicAnimationManager* group = dynamic_cast<osgAnimation::BasicAnimationManager*>(reinterpret_cast<osg::Object*>(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<osgAnimation::Animation*>(inputParameters[0].get());
|
||||
if (!child) return false;
|
||||
osgAnimation::BasicAnimationManager* group = dynamic_cast<osgAnimation::BasicAnimationManager*>(reinterpret_cast<osg::Object*>(objectPtr));
|
||||
id (group) group->stopAnimation(child);
|
||||
if (group) group->stopAnimation(child);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user