Csaba/Jester : fix a problem with material animation
This commit is contained in:
@@ -375,8 +375,10 @@ SGMaterialAnimation::createAnimationGroup(osg::Group& parent)
|
|||||||
const SGPropertyNode* node = getConfig()->getChild("property-base");
|
const SGPropertyNode* node = getConfig()->getChild("property-base");
|
||||||
if (node)
|
if (node)
|
||||||
inputRoot = getModelRoot()->getNode(node->getStringValue(), true);
|
inputRoot = getModelRoot()->getNode(node->getStringValue(), true);
|
||||||
if (getConfig()->hasChild("texture-prop"))
|
if (getConfig()->hasChild("texture-prop")) {
|
||||||
osg::StateSet* stateSet = group->getOrCreateStateSet();
|
osg::StateSet* stateSet = group->getOrCreateStateSet();
|
||||||
|
stateSet->setDataVariance(osg::Object::DYNAMIC);
|
||||||
|
}
|
||||||
if (getConfig()->hasChild("texture")) {
|
if (getConfig()->hasChild("texture")) {
|
||||||
std::string textureName = getConfig()->getStringValue("texture");
|
std::string textureName = getConfig()->getStringValue("texture");
|
||||||
std::string textureFile;
|
std::string textureFile;
|
||||||
|
|||||||
Reference in New Issue
Block a user