From b892924b0d92d80babd55c1f74059c87c68c6278 Mon Sep 17 00:00:00 2001 From: OmarEmaraDev Date: Sun, 3 Mar 2024 11:55:25 +0200 Subject: [PATCH] Fix future warning in latest commit The != operator did a scalar comparison, use the not_equal function instead. --- animation_nodes/nodes/mesh/mesh_object_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/animation_nodes/nodes/mesh/mesh_object_output.py b/animation_nodes/nodes/mesh/mesh_object_output.py index 1e2efe371..f05efe08d 100644 --- a/animation_nodes/nodes/mesh/mesh_object_output.py +++ b/animation_nodes/nodes/mesh/mesh_object_output.py @@ -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())