OSDN Git Service

BUG, extraction of max/min 1/2 was wrong (typo)
authorRobin Cornelius <robin.cornelius@gmail.com>
Sun, 18 Mar 2012 17:38:41 +0000 (17:38 +0000)
committerRobin Cornelius <robin.cornelius@gmail.com>
Sun, 18 Mar 2012 17:38:41 +0000 (17:38 +0000)
This fixes error described on last commit

git-svn-id: https://radegast.googlecode.com/svn/trunk@1224 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/GUI/Rendering/RenderAvatar.cs

index ca2abc9..9122df1 100644 (file)
@@ -718,6 +718,13 @@ namespace Radegast.Rendering
             // A driver drives multiple slave visual paramaters
             if (vpx.pType == VisualParamEx.ParamType.TYPE_DRIVER)
             {\r
+\r
+                if (vpx.ParamID == 652)\r
+                {\r
+                    int x = 0;\r
+                    x++;\r
+                }\r
+\r
                 foreach (VisualParamEx.driven child in vpx.childparams)\r
                 {\r
 \r
@@ -1946,7 +1953,7 @@ namespace Radegast.Rendering
                         d.max1 = float.Parse(param.Value, Utils.EnUsCulture);
                         d.max2 = float.Parse(node.Attributes.GetNamedItem("max2").Value, Utils.EnUsCulture);
                         d.min1 = float.Parse(node.Attributes.GetNamedItem("min1").Value, Utils.EnUsCulture);
-                        d.max2 = float.Parse(node.Attributes.GetNamedItem("min2").Value, Utils.EnUsCulture);
+                        d.min2 = float.Parse(node.Attributes.GetNamedItem("min2").Value, Utils.EnUsCulture);
                         d.hasMinMax = true;
                     }
                     else