OSGHUD: another fix the the wheel toggle of the driverinputWidget

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7799 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 924b152b160cf419fc2bfe3ada47c112966f262a
Former-commit-id: 5e4cde81bed4248027c850766f5484dae37d3840
This commit is contained in:
madbad 2021-11-22 16:37:17 +00:00
parent 3fcb72d7c8
commit b0602c747c

View file

@ -1698,6 +1698,11 @@ osg::ref_ptr <osg::Group> SDHUD::generateHudFromXmlFile(int scrH, int scrW)
transform->addChild(geom);
this->osgGroupHud->addChild(transform);
this->hudImgRotableElements[elementId] = transform;
if(widgetEnabled>0){
this->hudImgRotableElements["driverinput-wheel"]->setNodeMask(1);
}else{
this->hudImgRotableElements["driverinput-wheel"]->setNodeMask(0);
}
}
}
else if( type == "graph")