diff --git a/src/bonsai/Makefile b/src/bonsai/Makefile index f745f1ebed..d5a2ac99b5 100644 --- a/src/bonsai/Makefile +++ b/src/bonsai/Makefile @@ -360,6 +360,14 @@ else pytest test/tool/test_$(MODULE).py --maxfail=1 endif +.PHONY: test-modal +test-modal: +ifndef MODULE + blender --enable-event-simulate --python test/modal/test_snap.py +else + blender --enable-event-simulate --python test/modal/test_$(MODULE).py +endif + # Reregistering test is not added to the standard test suite because during unregister # Blender removes all Bonsai dependencies breaking dev-environment symlinks. .PHONY: test-reregister diff --git a/src/bonsai/bonsai/bim/module/model/polyline.py b/src/bonsai/bonsai/bim/module/model/polyline.py index be491e756b..393054d9ac 100644 --- a/src/bonsai/bonsai/bim/module/model/polyline.py +++ b/src/bonsai/bonsai/bim/module/model/polyline.py @@ -75,6 +75,7 @@ class PolylineOperator: self.is_typing = False self.snap_angle = None self.snapping_points = [] + self.unit_scale = 1.0 self.instructions = { "Cycle Input": {"icons": True, "keys": ["EVENT_TAB"]}, "Distance Input": {"icons": True, "keys": ["EVENT_D"]},