SGMaterialAnimation::SGMaterialAnimation(const SGPropertyNode* configNode,
SGPropertyNode* modelRoot,
const osgDB::Options*
- options) :
+ options, const string &path) :
SGAnimation(configNode, modelRoot),
texturePathList(options->getDatabasePathList())
{
if (configNode->hasChild("global"))
- SG_LOG(SG_IO, SG_ALERT, "Use of <global> in material animation is "
- "no longer supported");
+ SG_LOG(SG_IO, SG_ALERT, path <<
+ ": Use of <global> in material animation is "
+ "no longer supported.");
}
osg::Group*
public:
SGMaterialAnimation(const SGPropertyNode* configNode,
SGPropertyNode* modelRoot,
- const osgDB::Options* options);
+ const osgDB::Options* options,const string &path);
virtual osg::Group* createAnimationGroup(osg::Group& parent);
virtual void install(osg::Node& node);
static SGPropertyNode_ptr makeEffectProperties(const SGPropertyNode* animProp);
SGInteractionAnimation animInst(configNode, modelRoot);
animInst.apply(node);
} else if (type == "material") {
- SGMaterialAnimation animInst(configNode, modelRoot, options);
+ SGMaterialAnimation animInst(configNode, modelRoot, options, path);
animInst.apply(node);
} else if (type == "noshadow") {
SGShadowAnimation animInst(configNode, modelRoot);