* ThreadPool starvation check is done all the time now, not only under debugging mode
* Added Helpers.EnUsCulture for float parsing, converted all of the Single and Double parsing to be internationally friendly git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1089 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -8,6 +8,9 @@ namespace VisualParamGenerator
|
||||
{
|
||||
class VisualParamGenerator
|
||||
{
|
||||
public static readonly System.Globalization.CultureInfo EnUsCulture =
|
||||
new System.Globalization.CultureInfo("en-us");
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
if (args.Length < 3)
|
||||
@@ -109,12 +112,15 @@ namespace VisualParamGenerator
|
||||
if (node.Attributes["label_max"] != null)
|
||||
label_max = node.Attributes["label_max"].Value;
|
||||
|
||||
float min = Single.Parse(node.Attributes["value_min"].Value);
|
||||
float max = Single.Parse(node.Attributes["value_max"].Value);
|
||||
float min = Single.Parse(node.Attributes["value_min"].Value,
|
||||
System.Globalization.NumberStyles.Float, EnUsCulture.NumberFormat);
|
||||
float max = Single.Parse(node.Attributes["value_max"].Value,
|
||||
System.Globalization.NumberStyles.Float, EnUsCulture.NumberFormat);
|
||||
|
||||
float def;
|
||||
if (node.Attributes["value_default"] != null)
|
||||
def = Single.Parse(node.Attributes["value_default"].Value);
|
||||
def = Single.Parse(node.Attributes["value_default"].Value,
|
||||
System.Globalization.NumberStyles.Float, EnUsCulture.NumberFormat);
|
||||
else
|
||||
def = min;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user