From e84e4f155c28a01b4bda533d071767048e4593e2 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Thu, 21 Nov 2019 17:46:39 +0100 Subject: [PATCH] fix parsing numlist flag if objects are integers --- libsrc/core/python_ngcore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/core/python_ngcore.cpp b/libsrc/core/python_ngcore.cpp index f7addf3c..7503a9d1 100644 --- a/libsrc/core/python_ngcore.cpp +++ b/libsrc/core/python_ngcore.cpp @@ -39,7 +39,7 @@ namespace ngcore auto vdl = py::cast(value); if (py::len(vdl) > 0) { - if(py::isinstance(vdl[0])) + if(py::isinstance(vdl[0]) || py::isinstance(vdl[0])) flags.SetFlag(s, makeCArray(vdl)); if(py::isinstance(vdl[0])) flags.SetFlag(s, makeCArray(vdl));