Skip to content

Commit

Permalink
Fix future warning in latest commit
Browse files Browse the repository at this point in the history
The != operator did a scalar comparison, use the not_equal function
instead.
  • Loading branch information
OmarEmaraDev committed Mar 3, 2024
1 parent fe45013 commit b892924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion animation_nodes/nodes/mesh/mesh_object_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def setMesh(self, outMesh, mesh, object):
elif dataType in ("FLOAT2", "FLOAT_VECTOR"):
attributeOut.data.foreach_set("vector", data.asMemoryView())
elif dataType == "BOOLEAN":
attributeOut.data.foreach_set("value", data.asNumpyArray() != 0)
attributeOut.data.foreach_set("value", numpy.not_equal(data.asNumpyArray(), b'\0'))
else:
attributeOut.data.foreach_set("color", data.asMemoryView())

Expand Down

0 comments on commit b892924

Please sign in to comment.