Commits

Anonymous committed e3c8018

better curve draw in blendtreeview

  • Participants
  • Parent commits 1a3f6f5

Comments (0)

Files changed (2)

DarkMotion/BlendTree.cs

 				curvePnts[3].X = item.X;
 				curvePnts[3].Y = item.Y - radius / 4;
 
-				curvePnts[1].X = (curvePnts[0].X + xMid) / 2f;
+				curvePnts[1].X = (curvePnts[0].X * 3f + xMid) / 4f;
 				curvePnts[1].Y = yMid;
-				curvePnts[2].X = (curvePnts[3].X + xMid) / 2f;
+				curvePnts[2].X = (curvePnts[3].X * 3f + xMid) / 4f;
 				curvePnts[2].Y = yMid;
 
 				g.DrawCurve(transPen, curvePnts);

DarkMotion/DarkMotion.csproj

     <WarningLevel>4</WarningLevel>
     <Prefer32Bit>false</Prefer32Bit>
   </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
+    <PlatformTarget>x86</PlatformTarget>
+    <OutputPath>bin\x86\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
+    <PlatformTarget>x86</PlatformTarget>
+    <OutputPath>bin\x86\Release\</OutputPath>
+    <Optimize>true</Optimize>
+    <DefineConstants>TRACE</DefineConstants>
+  </PropertyGroup>
   <ItemGroup>
     <Reference Include="Newtonsoft.Json">
       <HintPath>..\3rdParty\Newtonsoft.Json.dll</HintPath>