mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 18:09:43 +00:00
Better comments
This commit is contained in:
parent
4676ac4ac9
commit
c71504eeb0
2 changed files with 5 additions and 7 deletions
|
@ -81,12 +81,10 @@ namespace Resource
|
|||
{
|
||||
if (animation)
|
||||
{
|
||||
if (animation->getName()
|
||||
== "Default") //"Default" is osg dae plugin's default naming scheme for unnamed animations
|
||||
//"Default" is osg dae plugin's default naming scheme for unnamed animations
|
||||
if (animation->getName() == "Default")
|
||||
{
|
||||
animation->setName(
|
||||
std::string("idle")); // animation naming scheme "idle: start" and "idle: stop" is the
|
||||
// default idle animation that OpenMW seems to want to play
|
||||
animation->setName(std::string("idle"));
|
||||
}
|
||||
|
||||
osg::ref_ptr<Resource::Animation> mergedAnimationTrack = new Resource::Animation;
|
||||
|
@ -116,7 +114,7 @@ namespace Resource
|
|||
|| belongsToTorso(channel->getTargetName()))
|
||||
continue;
|
||||
|
||||
mergedAnimationTrack->addChannel(channel.get()->clone()); // is ->clone needed?
|
||||
mergedAnimationTrack->addChannel(channel.get()->clone());
|
||||
}
|
||||
|
||||
callback->addMergedAnimationTrack(mergedAnimationTrack);
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
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
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue