archipack 2.8 fix transform_orientation

This commit is contained in:
stephen leger 2018-12-21 15:25:33 +01:00
parent cded330df4
commit f1eda54f48
2 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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)