mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
Initial implementation of tests for modal operators
This commit is contained in:
committed by
Thomas Krijnen
parent
89b4072d6d
commit
64dadac8d6
@@ -360,6 +360,14 @@ else
|
|||||||
pytest test/tool/test_$(MODULE).py --maxfail=1
|
pytest test/tool/test_$(MODULE).py --maxfail=1
|
||||||
endif
|
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
|
# Reregistering test is not added to the standard test suite because during unregister
|
||||||
# Blender removes all Bonsai dependencies breaking dev-environment symlinks.
|
# Blender removes all Bonsai dependencies breaking dev-environment symlinks.
|
||||||
.PHONY: test-reregister
|
.PHONY: test-reregister
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ class PolylineOperator:
|
|||||||
self.is_typing = False
|
self.is_typing = False
|
||||||
self.snap_angle = None
|
self.snap_angle = None
|
||||||
self.snapping_points = []
|
self.snapping_points = []
|
||||||
|
self.unit_scale = 1.0
|
||||||
self.instructions = {
|
self.instructions = {
|
||||||
"Cycle Input": {"icons": True, "keys": ["EVENT_TAB"]},
|
"Cycle Input": {"icons": True, "keys": ["EVENT_TAB"]},
|
||||||
"Distance Input": {"icons": True, "keys": ["EVENT_D"]},
|
"Distance Input": {"icons": True, "keys": ["EVENT_D"]},
|
||||||
|
|||||||
Reference in New Issue
Block a user