From e9eca5e3f2579d2117b2787b0a7ea9a1018a05ba Mon Sep 17 00:00:00 2001 From: Ryan Schultz Date: Wed, 7 Jan 2026 09:08:12 -0600 Subject: [PATCH] If feet is negative, inches should also be negative (subtractive) --- src/bonsai/bonsai/tool/unit.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bonsai/bonsai/tool/unit.py b/src/bonsai/bonsai/tool/unit.py index c982c43523..dbfcc3cd3e 100644 --- a/src/bonsai/bonsai/tool/unit.py +++ b/src/bonsai/bonsai/tool/unit.py @@ -166,6 +166,11 @@ def parse_distance_string(input_string: str, use_project_unit: bool = True) -> t break if inches is None: inches = 0 + + # If feet is negative, inches should also be negative (subtractive) + if feet < 0: + inches = -inches + # Convert to meters total_meters = (feet * 0.3048) + (inches * 0.0254) return total_meters