Switch points generation from managed thread to unmanaged thread; Change Spline to NativeSpline; Add converter for DistributionMode and update cloner editor ui; Add MeshData type for object distribution calculation; Add ObjectDistributionSetting and ObjectDistributionCalculation(Vertex and Edge Mode);

This commit is contained in:
Misaki
2024-09-17 18:27:35 +09:00
parent 1c39403cbf
commit 0ae44d6139
23 changed files with 559 additions and 148 deletions

View File

@@ -8,7 +8,7 @@ namespace Misaki.ArtTool
[Serializable]
public struct SplineDistributionSetting
{
public SplineContainer spline;
public NativeSpline nativeSpline;
public int indexOffset;
@@ -26,14 +26,9 @@ namespace Misaki.ArtTool
{
get
{
if (spline == null)
{
return 0;
}
if (isSpacingMode)
{
return Mathf.FloorToInt(spline.CalculateLength() / spacing) + 1;
return Mathf.FloorToInt(splineLength / spacing) + 1;
}
else
{