Add file name to error message.
This commit is contained in:
@@ -413,13 +413,14 @@ private:
|
|||||||
SGMaterialAnimation::SGMaterialAnimation(const SGPropertyNode* configNode,
|
SGMaterialAnimation::SGMaterialAnimation(const SGPropertyNode* configNode,
|
||||||
SGPropertyNode* modelRoot,
|
SGPropertyNode* modelRoot,
|
||||||
const osgDB::Options*
|
const osgDB::Options*
|
||||||
options) :
|
options, const string &path) :
|
||||||
SGAnimation(configNode, modelRoot),
|
SGAnimation(configNode, modelRoot),
|
||||||
texturePathList(options->getDatabasePathList())
|
texturePathList(options->getDatabasePathList())
|
||||||
{
|
{
|
||||||
if (configNode->hasChild("global"))
|
if (configNode->hasChild("global"))
|
||||||
SG_LOG(SG_IO, SG_ALERT, "Use of <global> in material animation is "
|
SG_LOG(SG_IO, SG_ALERT, path <<
|
||||||
"no longer supported");
|
": Use of <global> in material animation is "
|
||||||
|
"no longer supported.");
|
||||||
}
|
}
|
||||||
|
|
||||||
osg::Group*
|
osg::Group*
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class SGMaterialAnimation : public SGAnimation {
|
|||||||
public:
|
public:
|
||||||
SGMaterialAnimation(const SGPropertyNode* configNode,
|
SGMaterialAnimation(const SGPropertyNode* configNode,
|
||||||
SGPropertyNode* modelRoot,
|
SGPropertyNode* modelRoot,
|
||||||
const osgDB::Options* options);
|
const osgDB::Options* options,const string &path);
|
||||||
virtual osg::Group* createAnimationGroup(osg::Group& parent);
|
virtual osg::Group* createAnimationGroup(osg::Group& parent);
|
||||||
virtual void install(osg::Node& node);
|
virtual void install(osg::Node& node);
|
||||||
static SGPropertyNode_ptr makeEffectProperties(const SGPropertyNode* animProp);
|
static SGPropertyNode_ptr makeEffectProperties(const SGPropertyNode* animProp);
|
||||||
|
|||||||
@@ -433,7 +433,7 @@ SGAnimation::animate(osg::Node* node, const SGPropertyNode* configNode,
|
|||||||
SGInteractionAnimation animInst(configNode, modelRoot);
|
SGInteractionAnimation animInst(configNode, modelRoot);
|
||||||
animInst.apply(node);
|
animInst.apply(node);
|
||||||
} else if (type == "material") {
|
} else if (type == "material") {
|
||||||
SGMaterialAnimation animInst(configNode, modelRoot, options);
|
SGMaterialAnimation animInst(configNode, modelRoot, options, path);
|
||||||
animInst.apply(node);
|
animInst.apply(node);
|
||||||
} else if (type == "noshadow") {
|
} else if (type == "noshadow") {
|
||||||
SGShadowAnimation animInst(configNode, modelRoot);
|
SGShadowAnimation animInst(configNode, modelRoot);
|
||||||
|
|||||||
Reference in New Issue
Block a user