Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Leger <stephen@3dservices.ch>2017-08-01 04:48:42 +0300
committerStephen Leger <stephen@3dservices.ch>2017-08-01 04:51:01 +0300
commit45cad6756f10eb708d1a17dae4a70723accc1928 (patch)
tree48e189c5e9053f6c72547ebf425fbbd4966ef840 /archipack/archipack_manipulator.py
parent15ce79c680dd63e5d54cc8ec28ad2c4d87a813ac (diff)
archipack: update to 1.2.8 add roof and freeform floors
Diffstat (limited to 'archipack/archipack_manipulator.py')
-rw-r--r--archipack/archipack_manipulator.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/archipack/archipack_manipulator.py b/archipack/archipack_manipulator.py
index c3e0fc24..c96af62a 100644
--- a/archipack/archipack_manipulator.py
+++ b/archipack/archipack_manipulator.py
@@ -776,6 +776,7 @@ class WallSnapManipulator(Manipulator):
part.a0 = w.straight(1, 0).angle
# move object when point 0
self.o.location += sp.delta
+ self.o.matrix_world.translation += sp.delta
if "C_" in part.type:
part.radius = w.r
@@ -1636,6 +1637,11 @@ class DumbAngleManipulator(AngleManipulator):
self.line_0.v = -self.line_0.cross.normalized()
self.line_1.v = right
self.line_1.v = self.line_1.cross.normalized()
+
+ # prevent ValueError in angle_signed
+ if self.line_0.length == 0 or self.line_1.length == 0:
+ return
+
self.arc.a0 = self.line_0.angle
self.arc.da = self.line_1.v.to_2d().angle_signed(self.line_0.v.to_2d())
self.arc.r = 1.0