From 459ae8227c76f14c0c175053f5dd31bd3acb37e4 Mon Sep 17 00:00:00 2001 From: Omar Emara Date: Sat, 23 Dec 2023 15:18:06 +0200 Subject: [PATCH] Fix wrong implicit conversion --- animation_nodes/nodes/mesh/c_utils.pyx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/animation_nodes/nodes/mesh/c_utils.pyx b/animation_nodes/nodes/mesh/c_utils.pyx index c249b509d..c91d0fc0e 100644 --- a/animation_nodes/nodes/mesh/c_utils.pyx +++ b/animation_nodes/nodes/mesh/c_utils.pyx @@ -716,14 +716,14 @@ def convert_EdgeIndicesList_to_Int2List(EdgeIndicesList values): cdef Py_ssize_t i cdef Int2List int2D = Int2List(length = len(values)) for i in range(len(values)): - int2D.data[i].v1 = values.data[i].v1 - int2D.data[i].v2 = values.data[i].v2 + int2D.data[i].x = values.data[i].v1 + int2D.data[i].y = values.data[i].v2 return int2D def convert_Int2List_to_EdgeIndicesList(Int2List values): cdef Py_ssize_t i cdef EdgeIndicesList edges = EdgeIndicesList(length = len(values)) for i in range(len(values)): - edges.data[i].v1 = values.data[i].v1 - edges.data[i].v2 = values.data[i].v2 + edges.data[i].v1 = values.data[i].x + edges.data[i].v2 = values.data[i].y return edges