diff options
author | Stephen Leger <stephen@3dservices.ch> | 2018-12-21 17:25:33 +0300 |
---|---|---|
committer | Stephen Leger <stephen@3dservices.ch> | 2018-12-21 17:25:51 +0300 |
commit | f1eda54f481169d89108353831ba1462cfb01411 (patch) | |
tree | 8a488e800ff47051ed0fe2ee7db21fce10f26617 /archipack | |
parent | cded330df441082cdc5844dfb61e1555880ed538 (diff) |
archipack 2.8 fix transform_orientation
Diffstat (limited to 'archipack')
-rw-r--r-- | archipack/archipack_snap.py | 4 | ||||
-rw-r--r-- | archipack/archipack_wall2.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/archipack/archipack_snap.py b/archipack/archipack_snap.py index 92d6ae24..086c5525 100644 --- a/archipack/archipack_snap.py +++ b/archipack/archipack_snap.py @@ -181,7 +181,7 @@ class ArchipackSnapBase(): SnapStore.snap_elements = ts.snap_elements SnapStore.snap_target = ts.snap_target SnapStore.pivot_point = ts.transform_pivot_point - SnapStore.trans_orientation = context.scene.transform_orientation + SnapStore.trans_orientation = context.scene.transform_orientation_slots[0].type self.create_helper(context) # Use a timer to broadcast a TIMER event while transform.translate is running self._timer = context.window_manager.event_timer_add(0.1, window=context.window) @@ -208,7 +208,7 @@ class ArchipackSnapBase(): ts.snap_elements = SnapStore.snap_elements ts.snap_target = SnapStore.snap_target ts.transform_pivot_point = SnapStore.pivot_point - context.scene.transform_orientation = SnapStore.trans_orientation + context.scene.transform_orientation_slots[0].type = SnapStore.trans_orientation for o in SnapStore.sel: o.select_set(state=True) if SnapStore.act is not None: diff --git a/archipack/archipack_wall2.py b/archipack/archipack_wall2.py index 20f6e505..fdf24082 100644 --- a/archipack/archipack_wall2.py +++ b/archipack/archipack_wall2.py @@ -2127,7 +2127,7 @@ class ARCHIPACK_OT_wall2_draw(ArchipackDrawTool, Operator): snap_point(takeloc=self.takeloc, draw=self.sp_draw, takemat=self.takemat, - transform_orientation=context.scene.transform_orientation, + transform_orientation=context.scene.transform_orientation_slots[0].type, callback=self.sp_callback, constraint_axis=(True, True, False), release_confirm=self.max_style_draw_tool) |