App: add "Expanded" to DocumentObject.State

Looks like it was impossible to figure out if tree item of object is
expanded or collapsed. Now, it can be queried by e.g. `"Expanded" in
App.ActiveDocument.Fusion.State`
This commit is contained in:
DeepSOIC
2017-03-25 17:35:34 +03:00
committed by wmayer
parent 66fc40ce58
commit 5348f7afed

View File

@@ -162,6 +162,9 @@ Py::List DocumentObjectPy::getState(void) const
uptodate = false;
list.append(Py::String("Restore"));
}
if (object->testStatus(App::Expand)){
list.append(Py::String("Expanded"));
}
if (uptodate) {
list.append(Py::String("Up-to-date"));
}