From 79578ea191ae811a8461ce8fda1b358c3db81ee3 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 3 May 2022 14:10:42 +0200 Subject: [PATCH] App: handle 'NoPersists' property type in PropertyContainerPy::getTypeOfProperty --- src/App/PropertyContainerPyImp.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/App/PropertyContainerPyImp.cpp b/src/App/PropertyContainerPyImp.cpp index 44c3c83623..c49ba09df5 100644 --- a/src/App/PropertyContainerPyImp.cpp +++ b/src/App/PropertyContainerPyImp.cpp @@ -101,16 +101,18 @@ PyObject* PropertyContainerPy::getTypeOfProperty(PyObject *args) } short Type = prop->getType(); - if (Type & Prop_Hidden) - ret.append(Py::String("Hidden")); if (Type & Prop_ReadOnly) ret.append(Py::String("ReadOnly")); + if (Type & Prop_Transient) + ret.append(Py::String("Transient")); + if (Type & Prop_Hidden) + ret.append(Py::String("Hidden")); if (Type & Prop_Output) ret.append(Py::String("Output")); if (Type & Prop_NoRecompute) ret.append(Py::String("NoRecompute")); - if (Type & Prop_Transient) - ret.append(Py::String("Transient")); + if (Type & Prop_NoPersist) + ret.append(Py::String("NoPersist")); return Py::new_reference_to(ret); }