TD: Trim trailing newlines
This commit is contained in:
@@ -152,8 +152,8 @@ void DrawViewCollection::rebuildViewList()
|
||||
const std::vector<App::DocumentObject*> currViews = Views.getValues();
|
||||
std::vector<App::DocumentObject*> newViews;
|
||||
for (auto* child : getOutList()) {
|
||||
if (child->isDerivedFrom<DrawView>() ||
|
||||
(child->isDerivedFrom<App::Link>()
|
||||
if (child->isDerivedFrom<DrawView>() ||
|
||||
(child->isDerivedFrom<App::Link>()
|
||||
&& static_cast<App::Link*>(child)->getLinkedObject()->isDerivedFrom<DrawView>())) {
|
||||
bool found = false;
|
||||
for (auto& v:currViews) {
|
||||
|
||||
@@ -147,7 +147,7 @@ TopoDS_Shape ShapeExtractor::getShapes(const std::vector<App::DocumentObject*> l
|
||||
|
||||
if (isExplodedView) {
|
||||
Py::Object explodedViewPy = proxy->getValue();
|
||||
|
||||
|
||||
Py::Object attr = explodedViewPy.getAttr("restoreAssembly");
|
||||
if (attr.ptr() && attr.isCallable()) {
|
||||
Py::Tuple args(1);
|
||||
|
||||
Reference in New Issue
Block a user