diff options
author | Stephen Leger <stephen@3dservices.ch> | 2020-02-01 16:19:31 +0300 |
---|---|---|
committer | Stephen Leger <stephen@3dservices.ch> | 2020-02-01 16:21:07 +0300 |
commit | 8443147d3e96e04898958b55f111bec1dd98ae2d (patch) | |
tree | edeb3c023c9fad3c6ef116550f27314bcb783c02 | |
parent | 2caaf64ab10be6f03e234fa5b533e341512fbed5 (diff) |
Archipack: bugfix nested childs roof altitude
-rw-r--r-- | archipack/archipack_roof.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/archipack/archipack_roof.py b/archipack/archipack_roof.py index 4e8b9471..59757c4f 100644 --- a/archipack/archipack_roof.py +++ b/archipack/archipack_roof.py @@ -4270,7 +4270,10 @@ class archipack_roof(ArchipackLines, ArchipackObject, Manipulable, PropertyGroup default=0.0001, update=update_cutter ) - + z_parent: FloatProperty( + description="Delta z of t child for grand childs", + default=0 + ) hole_offset_left : FloatProperty( name="Left", description="Left distance from border", @@ -4512,8 +4515,8 @@ class archipack_roof(ArchipackLines, ArchipackObject, Manipulable, PropertyGroup # print("slope: %s" % (slope)) - z = d.z - self.t_dist_y * slope - + z = d.z_parent + d.z - self.t_dist_y * slope + self.z_parent = z - self.z # a_right from axis cross z b_right = self.intersection_angle( |