diff --git a/simgear/scene/model/SGMaterialAnimation.cxx b/simgear/scene/model/SGMaterialAnimation.cxx index 7e6a2acb..ed543148 100644 --- a/simgear/scene/model/SGMaterialAnimation.cxx +++ b/simgear/scene/model/SGMaterialAnimation.cxx @@ -376,6 +376,8 @@ SGMaterialAnimation::createAnimationGroup(osg::Group& parent) osgDB::FilePathList texturePathList = osgDB::getDataFilePathList(); + if (getConfig()->hasChild("texture-prop")) + osg::StateSet* stateSet = group->getOrCreateStateSet(); if (getConfig()->hasChild("texture")) { std::string textureName = getConfig()->getStringValue("texture"); std::string textureFile;