Add Lattice Magic to Addons #48

Merged
Nick Alberelli merged 36 commits from feature/lattice_magic into main 2023-05-17 20:48:52 +02:00
Showing only changes of commit b4f5cf6616 - Show all commits

View File

@ -49,9 +49,9 @@ def get_lattice_point_original_position(lattice: bpy.types.Lattice, index: int)
if lattice.points_w == 1: if lattice.points_w == 1:
start_vec[2] = 0 start_vec[2] = 0
unit_u = 1/(lattice.points_u-1) unit_u = 1/(lattice.points_u-0.99)
unit_v = 1/(lattice.points_v-1) unit_v = 1/(lattice.points_v-0.99)
unit_w = 1/(lattice.points_w-1) unit_w = 1/(lattice.points_w-0.99)
unit_vec = Vector((unit_u, unit_v, unit_w)) unit_vec = Vector((unit_u, unit_v, unit_w))
xyz_vec = Vector(get_lattice_vertex_xyz_position(lattice, index)) xyz_vec = Vector(get_lattice_vertex_xyz_position(lattice, index))