[Bf-extensions-cvs] [f1eda54f] master: archipack 2.8 fix transform_orientation
Stephen Leger
noreply at git.blender.org
Fri Dec 21 15:26:03 CET 2018
Commit: f1eda54f481169d89108353831ba1462cfb01411
Author: Stephen Leger
Date: Fri Dec 21 15:25:33 2018 +0100
Branches: master
https://developer.blender.org/rBAf1eda54f481169d89108353831ba1462cfb01411
archipack 2.8 fix transform_orientation
===================================================================
M archipack/archipack_snap.py
M archipack/archipack_wall2.py
===================================================================
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)
More information about the Bf-extensions-cvs
mailing list