new addon simple_deform_helper #104464
@ -259,7 +259,7 @@ class GizmoClassMethod(PublicTranslate):
|
|||||||
elif obj.type == 'LATTICE':
|
elif obj.type == 'LATTICE':
|
||||||
ver_len = obj.data.points.__len__()
|
ver_len = obj.data.points.__len__()
|
||||||
list_vertices = np.zeros(ver_len * 3, dtype=np.float32)
|
list_vertices = np.zeros(ver_len * 3, dtype=np.float32)
|
||||||
obj.data.points.foreach_get('co', list_vertices)
|
obj.data.points.foreach_get('co_deform', list_vertices)
|
||||||
list_vertices = list_vertices.reshape(ver_len, 3)
|
list_vertices = list_vertices.reshape(ver_len, 3)
|
||||||
return Vector(list_vertices.min(axis=0)).freeze(), Vector(list_vertices.max(axis=0)).freeze()
|
return Vector(list_vertices.min(axis=0)).freeze(), Vector(list_vertices.max(axis=0)).freeze()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user