mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-28 19:21:04 +00:00
Better comments
This commit is contained in:
parent
4676ac4ac9
commit
c71504eeb0
@ -81,12 +81,10 @@ namespace Resource
|
|||||||
{
|
{
|
||||||
if (animation)
|
if (animation)
|
||||||
{
|
{
|
||||||
if (animation->getName()
|
//"Default" is osg dae plugin's default naming scheme for unnamed animations
|
||||||
== "Default") //"Default" is osg dae plugin's default naming scheme for unnamed animations
|
if (animation->getName() == "Default")
|
||||||
{
|
{
|
||||||
animation->setName(
|
animation->setName(std::string("idle"));
|
||||||
std::string("idle")); // animation naming scheme "idle: start" and "idle: stop" is the
|
|
||||||
// default idle animation that OpenMW seems to want to play
|
|
||||||
}
|
}
|
||||||
|
|
||||||
osg::ref_ptr<Resource::Animation> mergedAnimationTrack = new Resource::Animation;
|
osg::ref_ptr<Resource::Animation> mergedAnimationTrack = new Resource::Animation;
|
||||||
@ -116,7 +114,7 @@ namespace Resource
|
|||||||
|| belongsToTorso(channel->getTargetName()))
|
|| belongsToTorso(channel->getTargetName()))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
mergedAnimationTrack->addChannel(channel.get()->clone()); // is ->clone needed?
|
mergedAnimationTrack->addChannel(channel.get()->clone());
|
||||||
}
|
}
|
||||||
|
|
||||||
callback->addMergedAnimationTrack(mergedAnimationTrack);
|
callback->addMergedAnimationTrack(mergedAnimationTrack);
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Resource
|
namespace Resource
|
||||||
{
|
{
|
||||||
/// @brief extract animations to OpenMW's animation system
|
/// @brief extract animations from OSG formats to OpenMW's animation system
|
||||||
class RetrieveAnimationsVisitor : public osg::NodeVisitor
|
class RetrieveAnimationsVisitor : public osg::NodeVisitor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user