Skip to content

Commit 3c897b4

Browse files
committed
fix: remove build conditional from extension runtime classes
1 parent 823f9b9 commit 3c897b4

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

Runtime/Extensions/FixedQuaternion.Extensions.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if UNITY_EDITOR
2-
using UnityEngine;
1+
using UnityEngine;
32

43
namespace FixedMathSharp
54
{
@@ -38,5 +37,4 @@ public static Quaternion ToQuaternion(this FixedQuaternion quat)
3837
);
3938
}
4039
}
41-
}
42-
#endif
40+
}

Runtime/Extensions/Vector2d.Extensions.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if UNITY_EDITOR
2-
using UnityEngine;
1+
using UnityEngine;
32

43
namespace FixedMathSharp
54
{
@@ -46,5 +45,4 @@ public static Vector3 ToVector3(this Vector2d vec, float y = 0f)
4645
return new Vector3(vec.x.ToPreciseFloat(), y, vec.y.ToPreciseFloat());
4746
}
4847
}
49-
}
50-
#endif
48+
}

Runtime/Extensions/Vector3d.Extensions.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if UNITY_EDITOR
2-
using UnityEngine;
1+
using UnityEngine;
32

43
namespace FixedMathSharp
54
{
@@ -72,5 +71,4 @@ public static Vector4 ToVector4(this Vector3d vec, float w = 0f)
7271
return new Vector4(vec.x.ToPreciseFloat(), vec.y.ToPreciseFloat(), vec.z.ToPreciseFloat(), w);
7372
}
7473
}
75-
}
76-
#endif
74+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.mrdav30.fixedmathsharp",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"displayName": "FixedMathSharp",
55
"description": "A high-precision, deterministic fixed-point math library for Unity and .NET.",
66
"unity": "2020.3",

0 commit comments

Comments
 (0)