add hack to fix visual studio 10 build
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8005 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: bb9706c6a6f5875c1a999f0127fc90967ac07fa6 Former-commit-id: 71d07525ed45e03d6238bf4344cd531cd406b227
This commit is contained in:
parent
bfd22dfe44
commit
1afb55583d
1 changed files with 6 additions and 2 deletions
|
@ -1827,8 +1827,12 @@ osg::ref_ptr <osg::Group> SDHUD::generateHudFromXmlFile(int scrH, int scrW)
|
|||
|
||||
// line variables
|
||||
std::vector<OSGPLOT::PlotLineConfig> lines;
|
||||
#if _MSC_VER &&_MSC_VER < 1700
|
||||
long long lineNum = 1;
|
||||
#else
|
||||
int lineNum = 1;
|
||||
#endif
|
||||
|
||||
int numLines = 1;
|
||||
//get a list of the sections in this section
|
||||
std::string linesSectionPath = subSectionPath + "/lines/";
|
||||
std::string lineSectionPath = linesSectionPath + "1";
|
||||
|
@ -1848,7 +1852,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);
|
||||
lineSectionPath = linesSectionPath + std::to_string(++numLines);
|
||||
lineSectionPath = linesSectionPath + std::to_string(++lineNum);
|
||||
}
|
||||
|
||||
GfLogDebug("OSGHUD: Generate graph object: %s \n", elementId.c_str());
|
||||
|
|
Loading…
Reference in a new issue