Skip to content

Commit

Permalink
Fix wrong implicit conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarEmaraDev authored Dec 23, 2023
1 parent a74151a commit 459ae82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions animation_nodes/nodes/mesh/c_utils.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <unsigned int>values.data[i].v1
int2D.data[i].v2 = <unsigned int>values.data[i].v2
int2D.data[i].x = <int>values.data[i].v1
int2D.data[i].y = <int>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 = <unsigned int>values.data[i].v1
edges.data[i].v2 = <unsigned int>values.data[i].v2
edges.data[i].v1 = <unsigned int>values.data[i].x
edges.data[i].v2 = <unsigned int>values.data[i].y
return edges

0 comments on commit 459ae82

Please sign in to comment.