From: Markus R. <rol...@us...> - 2007-02-18 12:05:57
|
Update of /cvsroot/simspark/simspark/spark/plugin/rubysceneimporter In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23177 Modified Files: Tag: WIN32 rubysceneimporter.cpp Log Message: - fix setup of parametermap. The first registered variable name was not properly registered. Index: rubysceneimporter.cpp =================================================================== RCS file: /cvsroot/simspark/simspark/spark/plugin/rubysceneimporter/rubysceneimporter.cpp,v retrieving revision 1.2.2.2 retrieving revision 1.2.2.3 diff -C2 -d -r1.2.2.2 -r1.2.2.3 *** rubysceneimporter.cpp 14 Feb 2007 12:34:08 -0000 1.2.2.2 --- rubysceneimporter.cpp 18 Feb 2007 12:05:52 -0000 1.2.2.3 *************** *** 345,349 **** int idx = (*iter).second; ! if (idx >= env.parameter->GetSize()) { GetLog()->Error() --- 345,352 ---- int idx = (*iter).second; ! if ( ! (idx < 0) || ! (idx >= env.parameter->GetSize()) ! ) { GetLog()->Error() *************** *** 645,649 **** // create a new variable env.parameter->AddValue(value); ! env.parameterMap[varname] = (static_cast<int>(env.parameterMap.size()) - 1); } else { --- 648,653 ---- // create a new variable env.parameter->AddValue(value); ! int idx = (static_cast<int>(env.parameterMap.size())); ! env.parameterMap[varname] = idx; } else { |