Skip to content

Commit dd58bc8

Browse files
authored
Fix for Feet and inches are the wrong way around #336 (#341)
1 parent 7521cd7 commit dd58bc8

File tree

2 files changed

+4
-4
lines changed
  • RealtimeCSG/Assets/Plugins/RealtimeCSG

2 files changed

+4
-4
lines changed

RealtimeCSG/Assets/Plugins/RealtimeCSG/API/Foundation/Editor/Version.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace RealtimeCSG.Foundation
22
{
33
internal static class Versioning
44
{
5-
public const string PluginVersion = "1_569";
5+
public const string PluginVersion = "1_570";
66
public const string PluginDLLVersion = "1_559";
77
}
88
}

RealtimeCSG/Assets/Plugins/RealtimeCSG/Editor/Scripts/View/Units.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public enum DistanceUnit
1212
Meters,
1313
Centimeters,
1414
Millimeters,
15-
Inches,
16-
Feet
15+
Feet,
16+
Inches
1717
}
1818

1919
public enum PixelUnit
@@ -67,7 +67,7 @@ public static DistanceUnit CycleToNextUnit (DistanceUnit unit)
6767
{
6868
if (unit < DistanceUnit.Meters)
6969
return DistanceUnit.Meters;
70-
return (DistanceUnit)((int)(unit + 1) % (((int)DistanceUnit.Feet) + 1));
70+
return (DistanceUnit)((int)(unit + 1) % (((int)DistanceUnit.Inches) + 1));
7171
}
7272

7373

0 commit comments

Comments
 (0)