fix OSG HUD graphs
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8000 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 5c962d9a2a390197e09e69b1dfd8129636389669 Former-commit-id: 9b314e555bcf4238f98e09236ff93c3b05d0cbee
This commit is contained in:
parent
3067aaf113
commit
d56611cc75
1 changed files with 2 additions and 2 deletions
|
@ -2038,7 +2038,7 @@ osg::ref_ptr <osg::Group> SDHUD::generateHudFromXmlFile(int scrH, int scrW)
|
|||
// line variables
|
||||
std::vector<OSGPLOT::PlotLineConfig> lines;
|
||||
|
||||
long double numLines = lines.size();
|
||||
int numLines = 0;
|
||||
//get a list of the sections in this section
|
||||
std::string linesSectionPath = subSectionPath + "/lines/";
|
||||
std::string lineSectionPath = linesSectionPath + std::to_string(numLines + 1);
|
||||
|
@ -2058,7 +2058,7 @@ osg::ref_ptr <osg::Group> SDHUD::generateHudFromXmlFile(int scrH, int scrW)
|
|||
config.color = colorStringToVec4(GfParmGetStr(paramHandle, lineSectionPath.c_str(), "color", ""));
|
||||
|
||||
lines.push_back(config);
|
||||
numLines = lines.size();
|
||||
numLines++;
|
||||
lineSectionPath = linesSectionPath + std::to_string(numLines + 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue